mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 14:10:51 +10:00
main.py: Don’t double print traceback
This commit is contained in:
@@ -56,7 +56,6 @@ class OpenCoreLegacyPatcher:
|
|||||||
# TODO: Support thread exceptions
|
# TODO: Support thread exceptions
|
||||||
def custom_excepthook(type, value, tb):
|
def custom_excepthook(type, value, tb):
|
||||||
logging.error("Uncaught exception", exc_info=(type, value, tb))
|
logging.error("Uncaught exception", exc_info=(type, value, tb))
|
||||||
traceback.print_exception(type, value, tb)
|
|
||||||
|
|
||||||
sys.excepthook = custom_excepthook
|
sys.excepthook = custom_excepthook
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user