Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __nml2_doc(cls,src):
import sys
try:
nml2_doc = nmlparse(src)
except Exception:
print("Not a valid NeuroML 2 doc: %s" % str(sys.exc_info()))
return None
return nml2_doc