Re: [Twisted-Python] The Real Error (tm) [was Re: how to write a safe catch-all]

2010-10-01 Thread Phil Mayers
On 01/10/10 14:19, Chris Withers wrote: > On 30/09/2010 18:01, Phil Mayers wrote: >> It is more than a little confusing, and I'm sure frustrating. >> >> I've tried to produce something like this locally, but cannot. > > The very first message in this thread (28th Sept, 14:48) and my email of > 30th

Re: [Twisted-Python] The Real Error (tm) [was Re: how to write a safe catch-all]

2010-10-01 Thread Chris Withers
On 30/09/2010 18:01, Phil Mayers wrote: > It is more than a little confusing, and I'm sure frustrating. > > I've tried to produce something like this locally, but cannot. The very first message in this thread (28th Sept, 14:48) and my email of 30th Sept, 14:36 both had scripts attached which do e

Re: [Twisted-Python] The Real Error (tm) [was Re: how to write a safe catch-all]

2010-09-30 Thread Phil Mayers
On 30/09/10 16:10, Chris Withers wrote: > On 30/09/2010 15:53, Phil Mayers wrote: >>> So, I appear to be back to the case where I can either gracefully handle >>> the exception *or* gracefully handle the errback, but not both? >> >> It should be possible if using Twisted APIs correctly to reliably

Re: [Twisted-Python] The Real Error (tm) [was Re: how to write a safe catch-all]

2010-09-30 Thread Chris Withers
On 30/09/2010 15:53, Phil Mayers wrote: >> So, I appear to be back to the case where I can either gracefully handle >> the exception *or* gracefully handle the errback, but not both? > > It should be possible if using Twisted APIs correctly to reliably > capture errors. > > If it is not, that is a

Re: [Twisted-Python] The Real Error (tm) [was Re: how to write a safe catch-all]

2010-09-30 Thread Phil Mayers
On 30/09/10 15:35, Chris Withers wrote: > On 30/09/2010 15:23, Phil Mayers wrote: >>> def loop(): >>> d = maybeDeferred(doStuff) >>> d.addErrback(partial(log.err,_why='Unhandled scheduled exception')) >> >>> So, how come my log.err doesn't get used for the AttributeError on >>> connector? >> >> If

Re: [Twisted-Python] The Real Error (tm) [was Re: how to write a safe catch-all]

2010-09-30 Thread exarkun
On 02:35 pm, ch...@simplistix.co.uk wrote: >On 30/09/2010 15:23, Phil Mayers wrote: >>>def loop(): >>>d = maybeDeferred(doStuff) >>>d.addErrback(partial(log.err,_why='Unhandled scheduled exception')) >> >>>So, how come my log.err doesn't get used for the AttributeError on >>>connector? >> >>If you

[Twisted-Python] The Real Error (tm) [was Re: how to write a safe catch-all]

2010-09-30 Thread Chris Withers
On 30/09/2010 15:23, Phil Mayers wrote: >> def loop(): >> d = maybeDeferred(doStuff) >> d.addErrback(partial(log.err,_why='Unhandled scheduled exception')) > >> So, how come my log.err doesn't get used for the AttributeError on >> connector? > > If you mean in your most recent "test_looping.py" exa