mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
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