Skip to content

Commit

Permalink
Fix Exception string formatting. Fixes ome#68
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Feb 16, 2022
1 parent 784ef6a commit 536a76b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/omero_metadata/populate.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ def _load(self):
images_by_id[iid] = image
if iname in self.images_by_name:
raise Exception("Image named %s(id=%d) present. (id=%s)" % (
iname, self.images_by_name[iname], iid
iname, self.images_by_name[iname].id.val, iid
))
self.images_by_name[iname] = image
self.images_by_id[self.target_object.id.val] = images_by_id
Expand Down

0 comments on commit 536a76b

Please sign in to comment.