Skip to content

Commit

Permalink
Add in missing RuntimeError
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenv committed Apr 5, 2024
1 parent ef8d1ce commit 031f9a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apis/python/src/tiledbsoma/_tdb_handles.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def open(
handle._do_initial_reads(auxiliary_reader)
else:
handle._do_initial_reads(tdb)
except tiledb.TileDBError as tdbe:
except (RuntimeError, tiledb.TileDBError) as tdbe:
if is_does_not_exist_error(tdbe):
raise DoesNotExistError(f"{uri!r} does not exist") from tdbe
raise
Expand Down
2 changes: 1 addition & 1 deletion apis/python/src/tiledbsoma/_tiledb_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def exists(
if not isinstance(md_type, str):
return False
return md_type.lower() == cls.soma_type.lower()
except (SOMAError, tiledb.cc.TileDBError):
except (RuntimeError, SOMAError, tiledb.cc.TileDBError):
return False

@classmethod
Expand Down

0 comments on commit 031f9a9

Please sign in to comment.