docs: def patch_gevent_hub():
      """ This patches the error handler in the gevent Hub object. """
      from gevent.hub import Hub
  
      def patched_handle_error(self, context, etype, value, tb):
          """ Patched to not print KeyboardInterrupt exceptions. """
          if isinstance(value, str):
              value = etype(value)
          not_error = issubclass(etype, self.NOT_ERROR)
          system_error = issubclass(etype, self.SYSTEM_ERROR)
          if not not_error and not issubclass(etype, KeyboardInterrupt):
              self.print_exception(context, etype, value, tb)
          if context is None or system_error:
              self.handle_system_error(etype, value)
  
      Hub._original_handle_error = Hub.handle_error
      Hub.handle_error = patched_handle_error