Skip to content

Commit

Permalink
Raise an error if NMODL is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
JCGoran committed Mar 4, 2024
1 parent 93fcef3 commit 26e6193
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions python/nmodl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@
)


try:
# Try importing but catch exception in case bindings are not available
from ._nmodl import NmodlDriver, to_json, to_nmodl, __version__ # noqa
from ._nmodl import NmodlDriver, to_json, to_nmodl, __version__ # noqa

__all__ = ["NmodlDriver", "to_json", "to_nmodl"]
except ImportError:
print("[NMODL] [warning] :: Python bindings are not available")
__all__ = ["NmodlDriver", "to_json", "to_nmodl"]

0 comments on commit 26e6193

Please sign in to comment.