Catch keyboard interrupts so they don't throw an error.
This commit is contained in:
parent
e1e974c196
commit
2d746f617b
1 changed files with 6 additions and 3 deletions
|
|
@ -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...'
|
||||||
|
try:
|
||||||
call([TWISTED_BINARY,
|
call([TWISTED_BINARY,
|
||||||
'-n',
|
'-n',
|
||||||
'--python=%s' % SERVER_PY_FILE])
|
'--python=%s' % SERVER_PY_FILE])
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
pass
|
||||||
|
|
||||||
def stop_server(parser, options, args):
|
def stop_server(parser, options, args):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue