Skip to content

Commit

Permalink
add *args to LogprepException
Browse files Browse the repository at this point in the history
- InvalidConfigurationError receives an unspecified amount of arguments that couldn't be successfully forwarded to the LogprepException
  • Loading branch information
dtrai2 committed Oct 25, 2024
1 parent af71620 commit 0e945c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logprep/abc/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
class LogprepException(Exception):
"""Base class for Logprep related exceptions."""

def __init__(self, message: str) -> None:
def __init__(self, message: str, *args) -> None:
self.message = message
super().__init__(message)
super().__init__(message, *args)

def __eq__(self, __value: object) -> bool:
return type(self) is type(__value) and self.args == __value.args

0 comments on commit 0e945c0

Please sign in to comment.