Skip to content

Commit

Permalink
Update __init__.template.py
Browse files Browse the repository at this point in the history
  • Loading branch information
FFroehlich committed Apr 12, 2024
1 parent a1f37b7 commit e09bb2f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/sdist/amici/__init__.template.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@

def get_jax_model() -> JAXModel:
return JAXModel_TPL_MODELNAME()
except (ModuleNotFoundError, ImportError):
except (ModuleNotFoundError, ImportError) as exc:
error = str(exc)

def get_jax_model() -> JAXModel:
raise NotImplementedError(str(err))
raise NotImplementedError(error)


__version__ = "TPL_PACKAGE_VERSION"

0 comments on commit e09bb2f

Please sign in to comment.