Skip to content

Commit

Permalink
add error message
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollman committed Dec 23, 2024
1 parent 0de1936 commit de11404
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions materializationengine/blueprints/client/api2.py
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,11 @@ def get(

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

0 comments on commit de11404

Please sign in to comment.