Skip to content

Commit f8d421d

Browse files
caseyflexyaugenst-flex
authored andcommitted
Minor improvement to import check for local subpixel
1 parent c30ee71 commit f8d421d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tidy3d/packaging.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,11 @@ def _fn(*args, **kwargs):
195195
try:
196196
import tidy3d_extras as tidy3d_extras_mod
197197

198+
_ = tidy3d_extras_mod.__version__
199+
198200
tidy3d_extras["mod"] = tidy3d_extras_mod
199201
tidy3d_extras["use_local_subpixel"] = True
200-
except ImportError as exc:
202+
except (ImportError, AttributeError) as exc:
201203
tidy3d_extras["mod"] = None
202204
tidy3d_extras["use_local_subpixel"] = False
203205
if config.use_local_subpixel is True:

0 commit comments

Comments
 (0)