From 1ef98e0a4b608fd49040c3b3b9b358584077d2aa Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Fri, 2 Jun 2023 09:46:28 -0600 Subject: [PATCH] Avoid logging wxPython bugs --- resources/logging_handler.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/logging_handler.py b/resources/logging_handler.py index 441955728..292f27cc1 100644 --- a/resources/logging_handler.py +++ b/resources/logging_handler.py @@ -214,6 +214,10 @@ class InitializeLoggingSupport: logging.error("Uncaught exception in main thread", exc_info=(type, value, tb)) self._display_debug_properties() + if "wx/" in "".join(traceback.format_exception(type, value, tb)): + # Likely a GUI error, don't display error dialog + return + if self.constants.cli_mode is True: threading.Thread(target=analytics_handler.Analytics(self.constants).send_crash_report, args=(self.log_filepath,)).start() return