Remove stack dump from ApplicationError dialog
This commit is contained in:
parent
38b166737b
commit
098ce7198e
@ -102,8 +102,8 @@ def handle_exception(exc_type, exc_value, exc_traceback):
|
|||||||
|
|
||||||
print(stackprinter.format(exc_value, suppressed_paths=['/.venv'], style='darkbg'))
|
print(stackprinter.format(exc_value, suppressed_paths=['/.venv'], style='darkbg'))
|
||||||
|
|
||||||
msg = stackprinter.format(exc_value)
|
stack = stackprinter.format(exc_value)
|
||||||
log.error(msg)
|
log.error(stack)
|
||||||
log.error(error_msg)
|
log.error(error_msg)
|
||||||
print("Critical error:", error_msg) # Consider logging instead of print
|
print("Critical error:", error_msg) # Consider logging instead of print
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ def handle_exception(exc_type, exc_value, exc_traceback):
|
|||||||
Config.ERRORS_TO,
|
Config.ERRORS_TO,
|
||||||
Config.ERRORS_FROM,
|
Config.ERRORS_FROM,
|
||||||
"Exception (log_uncaught_exceptions) from musicmuster",
|
"Exception (log_uncaught_exceptions) from musicmuster",
|
||||||
msg,
|
stack,
|
||||||
)
|
)
|
||||||
if QApplication.instance() is not None:
|
if QApplication.instance() is not None:
|
||||||
fname = os.path.split(exc_traceback.tb_frame.f_code.co_filename)[1]
|
fname = os.path.split(exc_traceback.tb_frame.f_code.co_filename)[1]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user