Skip to content

Commit 9783037

Browse files
authored
catch import error (#4287)
1 parent 99a2c14 commit 9783037

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apis/python/src/tiledbsoma/options/_soma_tiledb_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from tiledb import Ctx as TileDBCtx
2424

2525
TILEDB_EXISTS = True
26-
except ModuleNotFoundError:
26+
except (ModuleNotFoundError, ImportError):
2727
# If we set this to None, then the type hint TileDBCtx | None in the code
2828
# below will error out with:
2929
# TypeError: unsupported operand type(s) for |: 'NoneType' and 'NoneType'

0 commit comments

Comments
 (0)