Skip to content

Commit 4e38d06

Browse files
committedJun 5, 2018
Documentation
1 parent 40a2062 commit 4e38d06

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

‎python/utils.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,12 @@ def qgis_excepthook(type, value, tb):
195195

196196
def installErrorHook():
197197
"""
198-
Installs the QGIS application error/warning hook
199-
:return:
198+
Installs the QGIS application error/warning hook. This causes Python exceptions
199+
to be intercepted by the QGIS application and shown in the main window message bar
200+
and in custom dialogs.
201+
202+
Generally you shouldn't call this method - it's automatically called by
203+
the QGIS app on startup, and has no use in standalone applications and scripts.
200204
"""
201205
sys.excepthook = qgis_excepthook
202206
warnings.showwarning = showWarning

0 commit comments

Comments
 (0)
Please sign in to comment.