From 536a76bcab9ba1b2998f29ef514f573d2bd8039e Mon Sep 17 00:00:00 2001 From: William Moore Date: Wed, 16 Feb 2022 13:47:53 +0000 Subject: [PATCH] Fix Exception string formatting. Fixes #68 --- src/omero_metadata/populate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/omero_metadata/populate.py b/src/omero_metadata/populate.py index 2ca963cf..b803895f 100644 --- a/src/omero_metadata/populate.py +++ b/src/omero_metadata/populate.py @@ -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