Skip to content

Commit 8cdaf3f

Browse files
committed
[#1158] imasdef not crashing at import
1 parent 2d13d93 commit 8cdaf3f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tofu/imas2tofu/_core.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@
5757
# imas
5858
try:
5959
import imas
60-
from imas import imasdef
60+
try:
61+
from imas import imasdef
62+
except Exception:
63+
imasdef = None
6164
except Exception as err:
6265
raise Exception(f'imas not available: {str(err)}')
6366

0 commit comments

Comments
 (0)