Open zhangzhenhu opened 6 years ago
If no expressions are present, raise re-raises the last exception that was active in the current scope.
[1][2]
You can find more information from this PR: #206.
[1] https://docs.python.org/3/reference/simple_stmts.html#the-raise-statement [2] https://docs.python.org/2/reference/simple_stmts.html#the-raise-statement
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.
thriftpy/thrift.py:292 else and raise ???