Skip to content
Permalink
Browse files

Documentation

  • Loading branch information
nyalldawson committed Jun 5, 2018
1 parent 40a2062 commit 4e38d0696e2e3be6548eca3bfe96e16b66fc5818
Showing with 6 additions and 2 deletions.
  1. +6 −2 python/utils.py
@@ -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

0 comments on commit 4e38d06

Please sign in to comment.
You can’t perform that action at this time.