Skip to content

Commit

Permalink
[Python3.10] fix format_exception
Browse files Browse the repository at this point in the history
  • Loading branch information
techfreaque authored and Herklos committed Mar 3, 2023
1 parent 9709f47 commit 3717d37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octobot/community/errors_upload/error_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, error: Exception, title: str, timestamp: float, metrics_id: s
self.metrics_id: str = metrics_id
self.type: str = self.error.__class__.__name__ if self.error else ""
self.stacktrace: list = traceback.format_exception(
etype=type(self.error), value=self.error, tb=self.error.__traceback__
type(self.error), value=self.error, tb=self.error.__traceback__
)[1:] if self.error and isinstance(self.error, Exception) else []

def to_dict(self) -> dict:
Expand Down

0 comments on commit 3717d37

Please sign in to comment.