pyqtribbon.logger module

https://timlehr.com/python-exception-hooks-with-qt-message-box/

class pyqtribbon.logger.UncaughtHook(*args, **kwargs)[source]

Bases: QObject

exception_hook(exc_type, exc_value, exc_traceback)[source]

Function handling uncaught exceptions. It is triggered each time an uncaught exception occurs.

static show_exception_box(log_msg)[source]

Checks if a QApplication instance is available and shows a messagebox with the exception message. If unavailable (non-console application), log an additional notice.