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.
|
||||
"""
|
||||
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):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue