Skip to content

Commit

Permalink
fix: catch modulenotfound raise importerror
Browse files Browse the repository at this point in the history
  • Loading branch information
Lachlan Grose committed Jun 23, 2022
1 parent f9c8aa0 commit 836ee84
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions LoopStructural/interpolators/_discrete_fold_interpolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
from LoopStructural.utils import getLogger

logger = getLogger(__name__)

from ._cython.dsi_helper import fold_cg
try:
from ._cython.dsi_helper import fold_cg
except ModuleNotFoundError:
raise ImportError("Cython compiled code not found")


class DiscreteFoldInterpolator(PiecewiseLinearInterpolator):
Expand Down

0 comments on commit 836ee84

Please sign in to comment.