Merge pull request #2327 from richtermb/richtermb/push-more-error-frames

Add source parameter to ErrorFrame and set it in FrameProcessor. Upda…
This commit is contained in:
Mark Backman
2025-08-05 14:04:52 -07:00
committed by GitHub
5 changed files with 10 additions and 0 deletions

View File

@@ -664,10 +664,12 @@ class ErrorFrame(SystemFrame):
Parameters:
error: Description of the error that occurred.
fatal: Whether the error is fatal and requires bot shutdown.
source: The frame processor that generated the error.
"""
error: str
fatal: bool = False
processor: Optional["FrameProcessor"] = None
def __str__(self):
return f"{self.name}(error: {self.error}, fatal: {self.fatal})"