Do not crash Python script when users cancel
This commit is contained in:
parent
33e8f2536a
commit
416851bf99
|
@ -197,4 +197,9 @@ def main():
|
|||
|
||||
if __name__ == '__main__':
|
||||
|
||||
main()
|
||||
try:
|
||||
|
||||
main()
|
||||
|
||||
except KeyboardInterrupt:
|
||||
print('\nCancelled by user. Bye!')
|
||||
|
|
Loading…
Reference in New Issue