-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #245 from OpenTrafficCam/bug/2362-no-stacktrace-di…
…splayed-on-console-when-exception-thrown Bug/2362 no stacktrace displayed on console when exception thrown
- Loading branch information
Showing
3 changed files
with
18 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
class OurCustomGroupException(Exception): | ||
"""Placeholder for ExceptionGroups introduced in Python 3.11""" | ||
|
||
pass | ||
def __init__(self, exceptions: list[Exception], *args: object) -> None: | ||
super().__init__(*args) | ||
self._exceptions = exceptions | ||
|
||
def __str__(self) -> str: | ||
return "\n".join([str(exception) for exception in self._exceptions]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters