docs: def _payload_to_dict(self):
          """When an error status the payload is holding an AsyncException that
          is converted to a serializable dict.
          """
          if self.status != self.ERROR or not self.payload:
              return self.payload
  
          import traceback
  
          return {
              "error": self.payload.error,
              "args": self.payload.args,
              "traceback": traceback.format_exception(*self.payload.traceback)
          }