Try to handle keyboard interrupts
This commit is contained in:
parent
2b0d1f6446
commit
e67ee1663c
|
@ -371,6 +371,9 @@ def speedtest():
|
|||
resultid[0])
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
speedtest()
|
||||
except KeyboardInterrupt:
|
||||
print '\nCancelling...'
|
||||
|
||||
# vim:ts=4:sw=4:expandtab
|
||||
|
|
|
@ -349,6 +349,9 @@ def speedtest():
|
|||
resultid[0].decode())
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
speedtest()
|
||||
except KeyboardInterrupt:
|
||||
print('\nCancelling...')
|
||||
|
||||
# vim:ts=2:sw=2:expandtab
|
||||
|
|
Loading…
Reference in New Issue