[Twisted-Python] Trapping exceptions in Deferred

Mashiat Sarker Shakkhar mashiat.sarker at gmail.com
Fri May 22 08:56:01 MDT 2015


On Tue, May 12, 2015 at 3:31 PM, Christopher Armstrong <
radix at twistedmatrix.com> wrote:

> [...]
> Your code example is printing the error message and traceback _before_ you
> trap the failure. Are those print statements going to your logs? Could that
> be causing confusion?
>

To sum up the discussion on this matter - that is actually what was
happening. The exception was being printed as "Unhandled error" which
confused me. Thanks Christopher and Louis for your help.

Regards
Shakkhar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20150522/7250ebc3/attachment-0002.html>


More information about the Twisted-Python mailing list