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
Which comes from funcs which are a ply.yacc.YaccProduction which are generated by ply.
At this point I can only only see some kind of monkey-patching fix to replace the module instance after the service class is generated. Maybe there's some other way to do it but I'm not sure.
I have an issue when trying to raise and catch the exact exception from an included file. My thrift is:
The following pytest code succeeds:
Changing
test_errors_thrift
to:Causes the test to fail. I suspect this is because
test_thrift.TestService.do_error_result.thrift_spec
is:But the error raised is a:
So it can't actually raise the error correctly because it can't be put into the error result because:
returns
False
, perTProcessor.handle_exception
from:thriftpy2/thriftpy2/thrift.py
Lines 303 to 312 in a8b7873
Would the correct fix here be to ensure that generated
thrift_spec
s use the custom module name?The text was updated successfully, but these errors were encountered: