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
{{ message }}
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.
def handle_exception(self, e, result):
for k in sorted(result.thrift_spec):
if result.thrift_spec[k][1] == "success":
continue
_, exc_name, exc_cls, _ = result.thrift_spec[k]
if isinstance(e, exc_cls):
setattr(result, exc_name, e)
break
else:
raise
The text was updated successfully, but these errors were encountered:
Some linters may report this line as an error because it is not placed in an except block directly. But handle_exception() will only be invoked in the outer except block, so this should not be a problem.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
thriftpy/thrift.py:292
else and raise ???
The text was updated successfully, but these errors were encountered: