[Twisted-Python] understanding twisted, better error handling
Glyph Lefkowitz
glyph at twistedmatrix.com
Tue Jan 10 00:12:00 MST 2017
> On Jan 9, 2017, at 5:20 PM, steven meiers <commercials24 at yahoo.de> wrote:
>
> the error does come up when you give agent.request a "GET" instead of a
> b"GET".
That's expected; you do have to pass the method as `bytes`, as documented here: https://twistedmatrix.com/documents/16.6.0/api/twisted.web.iweb.IAgent.html#request <https://twistedmatrix.com/documents/16.6.0/api/twisted.web.iweb.IAgent.html#request>
-g
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20170109/bb78f593/attachment-0002.html>
More information about the Twisted-Python
mailing list