code: def _handle_exception(self, sender, exception=None):
          
          honeybadger.notify(exception)
          if self.reset_context_after_request:
              self._reset_context()
docs: Actual code handling the exception and sending it to honeybadger if it's enabled.
          :param T sender: the object sending the exception event.
          :param Exception exception: the exception to handle.