You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The app may encounter exceptions from time to time, for example this debian report, this happens, this is okay. What is not cool is to quit the app when an exception occurs. Above all, it loses all unsaved data. Then, it's not very helpful to see the window suddenly disappear without any explanation.
Quitting the app (and losing data!) without explanation is worse than merely not doing the desired action without explanation. The user can usually figure out easily the action was not performed, and at least no data is lost.
PyQt has this stubborn behavior by default, I personally usually add a snippet like this to my PyQt apps:
PyQt overrides the except hook only if it's not the default except hook. But the default except hook is fine. So this snippet tricks PyQt into thinking the except hook is not the default one, though it really is.
The text was updated successfully, but these errors were encountered:
The app may encounter exceptions from time to time, for example this debian report, this happens, this is okay. What is not cool is to quit the app when an exception occurs. Above all, it loses all unsaved data. Then, it's not very helpful to see the window suddenly disappear without any explanation.
Quitting the app (and losing data!) without explanation is worse than merely not doing the desired action without explanation. The user can usually figure out easily the action was not performed, and at least no data is lost.
PyQt has this stubborn behavior by default, I personally usually add a snippet like this to my PyQt apps:
PyQt overrides the except hook only if it's not the default except hook. But the default except hook is fine. So this snippet tricks PyQt into thinking the except hook is not the default one, though it really is.
The text was updated successfully, but these errors were encountered: