Skip to content

Commit

Permalink
utils:helpers - update ExceptionManager docstring
Browse files Browse the repository at this point in the history
Describe behaviour of exceptions whose class is declared in `catch` but whose subclass(es) is in `allow`.
  • Loading branch information
MatteoCampinoti94 committed Nov 21, 2023
1 parent cf67268 commit db1cdc8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions acacore/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ class ExceptionManager:
"""
A context manager class that catches specified exceptions and stores the exception and traceback for later use.
Exceptions whose class is explicitly declared in the 'catch' argument are always caught,
even if they subclass from classes passed int the 'allow' argument.
Args:
*catch (Type[BaseException]): Exception types that should be caught and not allowed to rise.
Expand Down

0 comments on commit db1cdc8

Please sign in to comment.