Please sign in to comment.
[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
Showing with 7 additions and 10 deletions.