Re: [Twisted-Python] Understanding deferred and error handling

2011-04-20 Thread David Cournapeau
On Thu, Apr 21, 2011 at 2:31 AM, Phil Mayers wrote: > On 04/20/2011 05:28 AM, David wrote: >> Hi, >> >> I have a hard time figuring out error handling with deferred in twisted. >> More exactly, I don't understand how to always get meaningful tracebacks >> to understand where the error actually hap

[Twisted-Python] How to exit a twistd program with a status code ?

2010-09-23 Thread David Cournapeau
Hi, I have a program run through twistd, and would like to exit with a non zero status code on some error. I have a callback which stops the reactor and then sys.exit(some_value), but twistd still seems to catch the SystemExit exception after calling for reactor.stop(): Unhandled error in Deferre

Re: [Twisted-Python] Add custom options handling to a twisted application running from twistd

2010-08-18 Thread David Cournapeau
On Wed, Aug 18, 2010 at 9:10 PM, Itamar Turner-Trauring wrote: > On Wed, 2010-08-18 at 20:28 +0900, David Cournapeau wrote: > >> I am trying to add some options handling to an existing twisted >> application, which runs as an "app" from twistd through the -y >> a

[Twisted-Python] Add custom options handling to a twisted application running from twistd

2010-08-18 Thread David Cournapeau
Hi, I am trying to add some options handling to an existing twisted application, which runs as an "app" from twistd through the -y argument. It is not clear to me how to do that ? cheers, David ___ Twisted-Python mailing list Twisted-Python@twistedmat