don't call os.exit as it leaves the process resources standing

This commit is contained in:
Eren Gölge 2021-04-07 20:10:52 +02:00
parent 7cecd2fb2e
commit 2a872c98aa
1 changed files with 0 additions and 4 deletions

View File

@ -613,10 +613,6 @@ if __name__ == '__main__':
main(args)
except KeyboardInterrupt:
remove_experiment_folder(OUT_PATH)
try:
sys.exit(0)
except SystemExit:
os._exit(0) # pylint: disable=protected-access
except Exception: # pylint: disable=broad-except
remove_experiment_folder(OUT_PATH)
traceback.print_exc()