Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def convert_to_gillespy_model(path):
if os.path.exists(path):
try:
gpy_model, errors = convert(path)
return gpy_model, errors
except:
return None, []
else:
raise StochSSFileNotFoundError("Could not find the sbml file: "+path)