Skip to content

Commit

Permalink
FileAnnotationWrapper isOriginalMetadata() works if file is not loade…
Browse files Browse the repository at this point in the history
…d. Fixes #7259
  • Loading branch information
Will Moore committed Nov 16, 2011
1 parent 17b0f3a commit dfa4c05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/tools/OmeroPy/src/omero/gateway/__init__.py
Expand Up @@ -3351,7 +3351,7 @@ def isOriginalMetadata(self):
"""

try:
if self._obj.ns is not None and self._obj.ns.val == omero.constants.namespaces.NSCOMPANIONFILE and self._obj.file.name.val.startswith("original_metadata"):
if self._obj.ns is not None and self._obj.ns.val == omero.constants.namespaces.NSCOMPANIONFILE and self.getFile().getName().startswith("original_metadata"):
return True
except:
logger.info(traceback.format_exc())
Expand Down

0 comments on commit dfa4c05

Please sign in to comment.