Skip to content

Commit ccdab90

Browse files
authored
refactor(event-handler): remove kwargs from AppSync exception constructor (#7699)
remote .
1 parent 2f3b693 commit ccdab90

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

aws_lambda_powertools/event_handler/events_appsync/exceptions.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@ class UnauthorizedException(Exception):
1212
message (str): The error message describing the unauthorized access.
1313
"""
1414

15-
def __init__(self, message: str | None = None, *args, **kwargs):
15+
def __init__(self, message: str | None = None, *args):
1616
"""
1717
Initialize the UnauthorizedException.
1818
1919
Args:
2020
message (str): A descriptive error message.
2121
*args: Variable positional arguments.
22-
**kwargs: Variable keyword arguments.
2322
"""
24-
super().__init__(message, *args, **kwargs)
23+
super().__init__(message, *args)
2524
self.name = "UnauthorizedException"

0 commit comments

Comments
 (0)