Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 5, 2018
1 parent 40a2062 commit 4e38d06
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/utils.py
Expand Up @@ -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
Expand Down

0 comments on commit 4e38d06

Please sign in to comment.