[Twisted-Python] Weird problem with XMLRPC -> ('405', 'Method Not Allowed')

Itamar Shtull-Trauring itamar at itamarst.org
Fri Nov 4 11:36:02 EST 2005

On Fri, 2005-11-04 at 11:49 +0100, Remi Cool wrote:

> One other thing is that pressing CTRL-C when the server is running,
> results in the RuntimeError: can't stop reactor that isn't running.

Twisted handles Ctrl-C for you, you don't need to catch
KeyboardInterrupt or exceptions. Just get rid of all the try/except
around reactor.run(), and don't call reactor.stop() after reactor.run()
has returned, which is what you're doing that causes the RuntimeError.

More information about the Twisted-Python mailing list