Skip to content

Commit de11404

Browse files
committed
add error message
1 parent 0de1936 commit de11404

File tree

1 file changed

+5
-0
lines changed
  • materializationengine/blueprints/client

1 file changed

+5
-0
lines changed

materializationengine/blueprints/client/api2.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,11 @@ def get(
886886

887887
db = dynamic_annotation_cache.get_db(aligned_volume_name)
888888
ann_md = db.database.get_table_metadata(table_name)
889+
if ann_md is None:
890+
return (
891+
f"No metadata found for table named {table_name} in version {version}",
892+
404,
893+
)
889894
# the get_table_metadata function joins on the segmentationmetadata which
890895
# has the segmentation_table in the table_name and the annotation table name in the annotation_table
891896
# field. So when we update here, we overwrite the table_name with the segmentation table name,

0 commit comments

Comments
 (0)