Inline callback exception handling with PB
[email protected] Wed, 23 Sep 2009 19:31:35 -0000
| Newsgroups | gmane.comp.python.twisted.bugs |
|---|---|
| Message-ID | <[email protected]> |
New submission from patrick <None>: Using Twisted 8.2.0, exception handling within a method using inline callbacks and PB fails to operate correctly. The issue is that the `pb.Error` serialized on the remote side stores the exception type as a string. When `twisted.python.failure.Failure.throwExceptionIntoGenerator()` is invoked, `self.type` is a string rather than a type, and Python complains and does not deliver the exception to the generator. The attached patch fixes the problem. The behavior can be repeated using the attached programs (downloaded from a [http://twistedmatrix.com/pipermail/twisted-python/2009-January/018969.html mailing list thread]). ---------- Type : defect Component: core Keywords : Priority : normal Nosy : ---------- http://twistedmatrix.com/trac/ticket/4036