From 2d746f617b5a000d68863bc26c0e83bab1c87e66 Mon Sep 17 00:00:00 2001 From: Greg Taylor Date: Thu, 15 Jan 2009 15:07:06 +0000 Subject: [PATCH] Catch keyboard interrupts so they don't throw an error. --- game/evennia.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/game/evennia.py b/game/evennia.py index ba0032b73..04bd300cf 100755 --- a/game/evennia.py +++ b/game/evennia.py @@ -61,9 +61,12 @@ def start_interactive(parser, options, args): all logging output is directed to stdout. """ print 'Starting in interactive mode...' - call([TWISTED_BINARY, - '-n', - '--python=%s' % SERVER_PY_FILE]) + try: + call([TWISTED_BINARY, + '-n', + '--python=%s' % SERVER_PY_FILE]) + except KeyboardInterrupt: + pass def stop_server(parser, options, args): """