Minor update

This commit is contained in:
Miroslav Stampar
2019-05-03 13:38:09 +02:00
parent f6f6844a0d
commit ece0ae6f86
2 changed files with 5 additions and 2 deletions

View File

@@ -412,8 +412,11 @@ if __name__ == "__main__":
main()
except KeyboardInterrupt:
pass
except SystemExit:
raise
except:
pass
if six.PY3:
traceback.print_exc()
finally:
# Reference: http://stackoverflow.com/questions/1635080/terminate-a-multi-thread-python-program
if threading.activeCount() > 1: