docs: def excepthook(cls, error, trace):
      """
      Runs all of the registered exception hook methods with the given value.
      Look at the sys.excepthook documentation for more information.
      
      :param      cls     | <type>
                  error   | <str>
                  trace   | <traceback>
      """
      global _excepthooks
      new_hooks = []
  
      for hook_ref in _excepthooks:
          hook = hook_ref()
          if hook:
              hook(cls, error, trace)
              new_hooks.append(hook_ref)
  
      _excepthook = new_hooks
      sys.__excepthook__(cls, error, trace)