Skip to content

Commit

Permalink
Use setattr
Browse files Browse the repository at this point in the history
  • Loading branch information
ahopkins committed Jul 17, 2023
1 parent 0b52c9c commit 8b83306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sanic/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ async def _dispatch(
Event.SERVER_EXCEPTION_REPORT.value,
context={"exception": e},
)
e.__dispatched__ = True
setattr(e, "__dispatched__", True)
raise e
finally:
for signal_event in events:
Expand Down

0 comments on commit 8b83306

Please sign in to comment.