mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
Documentation
This commit is contained in:
parent
40a2062ec1
commit
4e38d0696e
@ -195,8 +195,12 @@ def qgis_excepthook(type, value, tb):
|
||||
|
||||
def installErrorHook():
|
||||
"""
|
||||
Installs the QGIS application error/warning hook
|
||||
:return:
|
||||
Installs the QGIS application error/warning hook. This causes Python exceptions
|
||||
to be intercepted by the QGIS application and shown in the main window message bar
|
||||
and in custom dialogs.
|
||||
|
||||
Generally you shouldn't call this method - it's automatically called by
|
||||
the QGIS app on startup, and has no use in standalone applications and scripts.
|
||||
"""
|
||||
sys.excepthook = qgis_excepthook
|
||||
warnings.showwarning = showWarning
|
||||
|
Loading…
x
Reference in New Issue
Block a user