<html><body>On 05:14 pm, ncesar@lunix.com.ar wrote:<br />&gt;I have the following code,<br /><br />&gt;I want my GoodByeException to exit the reactor loop (basacally do a<br />&gt;reactor.stop()) and then twistd exit the reactor's main loop. I'm programming<br />&gt;a bigger application and sudentlly some exceptions are really Fatal, but the<br />&gt;applications keeps on running (sometimes with no services attending).<br /><br />So make GoodByeException.__init__ call reactor.stop() instead of setting the useless 'args' attribute.<br /><br />This is bad form, however. &#160;Particular types of exception should not stop the reactor. &#160;Code that wants the reactor to stop, should call reactor.stop. &#160;Maybe you could make a method that both calls reactor.stop() *and* raises an exception.<br /><br /></body></html>