You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default value of ignoreExceptions in the assert_re decorator initializer is None but except None is invalid, raising a TypeError:
TypeError: catching classes that do not inherit from BaseException is not allowed
Exception chaining does retain the original exception and traceback but it's confusing to see this extra unrelated error.
except None was allowed in Python 2, where the argument to except could be anything and non-exception types would simply never match any actual raised exception. The no-match equivalent for Python 3 is an empty tuple, so I think the default arg for ignoreExceptions should be changed to ().
The text was updated successfully, but these errors were encountered:
omero-py/src/omero/gateway/__init__.py
Line 7927 in 05d5241
omero-py/src/omero/gateway/__init__.py
Line 7958 in 05d5241
The default value of ignoreExceptions in the assert_re decorator initializer is None but
except None
is invalid, raising a TypeError:Exception chaining does retain the original exception and traceback but it's confusing to see this extra unrelated error.
except None
was allowed in Python 2, where the argument toexcept
could be anything and non-exception types would simply never match any actual raised exception. The no-match equivalent for Python 3 is an empty tuple, so I think the default arg for ignoreExceptions should be changed to()
.The text was updated successfully, but these errors were encountered: