Skip to content

Commit

Permalink
fixed missing docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
97gamjak committed May 7, 2024
1 parent f1d7b89 commit 199734c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion PQAnalysis/utils/custom_logging.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""
A module containing custom logging classes and functions, that are used in the PQAnalysis package.
A module containing custom logging classes and functions,
that are used in the PQAnalysis package.
"""

from __future__ import annotations
Expand Down Expand Up @@ -165,6 +166,9 @@ def _log(self, # pylint: disable=arguments-differ
raise exception(msg).with_traceback(back_tb)

def exception_hook(exc_type, exc_value, exc_traceback):
"""
A custom exception hook that ignores the CustomLoggerException.
"""
if exc_type != CustomLoggerException:
sys.__excepthook__(exc_type, exc_value, exc_traceback)

Check warning on line 173 in PQAnalysis/utils/custom_logging.py

View check run for this annotation

Codecov / codecov/patch

PQAnalysis/utils/custom_logging.py#L172-L173

Added lines #L172 - L173 were not covered by tests

Expand Down

0 comments on commit 199734c

Please sign in to comment.