Catch keyboard interrupts so they don't throw an error.

This commit is contained in:
Greg Taylor 2009-01-15 15:07:06 +00:00
parent e1e974c196
commit 2d746f617b

View file

@ -61,9 +61,12 @@ def start_interactive(parser, options, args):
all logging output is directed to stdout. all logging output is directed to stdout.
""" """
print 'Starting in interactive mode...' print 'Starting in interactive mode...'
call([TWISTED_BINARY, try:
'-n', call([TWISTED_BINARY,
'--python=%s' % SERVER_PY_FILE]) '-n',
'--python=%s' % SERVER_PY_FILE])
except KeyboardInterrupt:
pass
def stop_server(parser, options, args): def stop_server(parser, options, args):
""" """