Skip to content

Commit d6fd022

Browse files
authored
fix: fix the import error when running pytest (#32)
1 parent dc029bc commit d6fd022

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

python/python/lance_graph/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ def _load_bindings() -> ModuleType:
1515
try:
1616
from . import _internal as bindings # type: ignore[attr-defined]
1717
except ImportError:
18-
bindings = _load_dev_build()
18+
try:
19+
import _internal as bindings # type: ignore[import-not-found]
20+
except ImportError:
21+
bindings = _load_dev_build()
1922
return bindings
2023

2124

0 commit comments

Comments
 (0)