Skip to content

Commit

Permalink
Throw more informative exception if graph DB metadata doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
funkey committed Mar 8, 2024
1 parent 2896331 commit b639b42
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions funlib/persistence/graphs/sql_graph_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ def __init__(
self.ndims = None # to be read from metadata

metadata = self._read_metadata()
if metadata is None:
RuntimeError("metadata does not exist, can't open in read mode")
self.__load_metadata(metadata)

if mode in self.create_modes:
Expand Down

0 comments on commit b639b42

Please sign in to comment.