[Twisted-Python] t.w.client.Agent exceptions

Glyph Lefkowitz glyph at twistedmatrix.com
Wed Mar 5 15:08:31 MST 2014


On Mar 5, 2014, at 9:23 AM, Phil Mayers <p.mayers at imperial.ac.uk> wrote:

> All,
> 
> I'm having a head-poundingly annoying time getting detailed exception info out of the new Agent stuff.
> 
> Specifically, I have some bug inside my code somewhere, but I can't get decent tracebacks out because _WrapperException is the base class for RequestGenerationFailed, but there's no public (non-underscore-prefixed) way to get that.
> 
> It seems like an API error; how is one supposed to err.track/check other than importing a non-public API?

You're right; this is a bug in Agent.

<http://twistedmatrix.com/trac/ticket/5310>

For right now, yes, you're going to have to import some crappy private APIs.  Any chance I could convince you to submit some fixes to that ticket so we won't have to do that in the future? :-)

-glyph

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20140305/628bdf00/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4124 bytes
Desc: not available
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20140305/628bdf00/attachment.bin>


More information about the Twisted-Python mailing list