1
0
Fork 0
mirror of synced 2024-06-28 02:50:27 +12:00

Improved traceback

This commit is contained in:
Ali Parlakci 2018-07-21 21:50:54 +03:00
parent 2adf2c0451
commit 8c966df105

View file

@ -668,7 +668,10 @@ if __name__ == "__main__":
GLOBAL.directory = Path(".\\")
print("\nQUITTING...")
except Exception as exception:
logging.error("Runtime error!", exc_info=full_exc_info(sys.exc_info()))
if GLOBAL.directory is None:
GLOBAL.directory = Path(".\\")
logging.error(sys.exc_info()[0].__name__,
exc_info=full_exc_info(sys.exc_info()))
print(log_stream.getvalue())
input("Press enter to quit\n")