Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[python] Don't install error hook by default
This error hook should only ever be used from QGIS app, never from standalone scripts and applications, so we should default to not using it and only install it when initializing python from app. Otherwise default behavior for standalone scripts based on PyQGIS is to silently swallow exceptions - this leaves script developers *no clues* to go off to debug their applications, meaning that errors which would usually take a couple of seconds to fix become horrible exercises in frustration for those unaware of QGIS' exception handling and the QGIS_DISABLE_MESSAGE_HOOKS environment variable. Refs #19111
- Loading branch information
1 parent
cbbe905
commit 40a2062
Showing
2 changed files
with
7 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters