Skip to content

Commit

Permalink
Fix exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
David Stirling authored Apr 2, 2021
1 parent f093a15 commit 0769b89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bioformats/formatreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ def __init__(self, path=None, url=None, perform_init=True):
omero_logout()
omero_login()
else:
logger.warn(e.message)
logger.warn(e)
for line in traceback.format_exc().split("\n"):
logger.warn(line)
if jutil.is_instance_of(
Expand Down Expand Up @@ -732,7 +732,7 @@ def init_reader(self):
try:
self.rdr.setId(self.path)
except jutil.JavaException as e:
logger.warn(e.message)
logger.warn(e)
for line in traceback.format_exc().split("\n"):
logger.warn(line)
je = e.throwable
Expand Down

0 comments on commit 0769b89

Please sign in to comment.