Re: [Twisted-Python] Problem with Deferreds

2016-04-02 Thread Chris Norman
Hi, Yes, that sorted the problem out no worries. Thank you so much. On 02/04/2016 15:00, Kevin Conway wrote: Hi Chris, tl;dr: Returning a value from 'dataReceived', or any of its extensions such as 'lineReceived' in the 'LineReceiver' Protocol subclass, triggers a disconnect and uses the r

Re: [Twisted-Python] Problem with Deferreds

2016-04-02 Thread Kevin Conway
Hi Chris, tl;dr: Returning a value from 'dataReceived', or any of its extensions such as 'lineReceived' in the 'LineReceiver' Protocol subclass, triggers a disconnect and uses the returned value as the 'reason'. A 'reason' must be an Exception or t.p.Failure object as other values will trigger thi

[Twisted-Python] Problem with Deferreds

2016-04-02 Thread Chris Norman
Hi all, I recently got over myself and forced myself to read about Deferreds rather than using threading opperations. I've used them successfully in a couple of places, but this one has me flummoxed: Here's the code for the Deferred and it's sub-commands: def do_command(self, cmd, **kwargs