original_docstring: 
      Global function to log an unhandled exception, including its stack trace,
      to display a message box with a summary of the exception for the observer,
      and upon observer hitting OK, to exit trawl analyzer with a non-zero return value.
  
      Based upon https://riverbankcomputing.com/pipermail/pyqt/2009-May/022961.html
  
      :param except_type:
      :param except_value:
      :param traceback_obj:
      :return:
      
docstring: Global function to log an unhandled exception, including its stack trace,
  to display a message box with a summary of the exception for the observer,
  and upon observer hitting OK, to exit trawl analyzer with a non-zero return value.
  
  
docstring_tokens: Global function to log an unhandled exception including its stack trace to display a message box with a summary of the exception for the observer and upon observer hitting OK to exit trawl analyzer with a non - zero return value .
code: def exception_hook(except_type, except_value, traceback_obj):
      """
      Global function to log an unhandled exception, including its stack trace,
      to display a message box with a summary of the exception for the observer,
      and upon observer hitting OK, to exit trawl analyzer with a non-zero return value.
  
      Based upon https://riverbankcomputing.com/pipermail/pyqt/2009-May/022961.html
  
      :param except_type:
      :param except_value:
      :param traceback_obj:
      :return:
      """
      if QApplication.instance():
          app = QApplication.instance()
          app.unhandledExceptionCaught.emit(except_type, except_value, traceback_obj)
  
      else:
          logging.info("not a QApplication")
code_tokens: def exception_hook ( except_type , except_value , traceback_obj ) : if QApplication . instance ( ) : app = QApplication . instance ( ) app . unhandledExceptionCaught . emit ( except_type , except_value , traceback_obj ) else : logging . info ( "not a QApplication" )
short_docstring: Global function to log an unhandled exception, including its stack trace,
  to display a message box with a summary of the exception for the observer,
  and upon observer hitting OK, to exit trawl analyzer with a non-zero return value.
short_docstring_tokens: Global function to log an unhandled exception including its stack trace to display a message box with a summary of the exception for the observer and upon observer hitting OK to exit trawl analyzer with a non - zero return value .
comment: """
      Global function to log an unhandled exception, including its stack trace,
      to display a message box with a summary of the exception for the observer,
      and upon observer hitting OK, to exit trawl analyzer with a non-zero return value.
  
      Based upon https://riverbankcomputing.com/pipermail/pyqt/2009-May/022961.html
  
      :param except_type:
      :param except_value:
      :param traceback_obj:
      :return:
      """