Skip to content

Commit 15a18c0

Browse files
committed
argument_names plural
1 parent 006398f commit 15a18c0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/viur/shop/types/exceptions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,17 +124,17 @@ class TooManyArgumentsException(ViURShopHttpException):
124124
Exception raised when a function receives unknown or excessive arguments.
125125
"""
126126

127-
def __init__(self, func_name: str, *argument_name: str):
127+
def __init__(self, func_name: str, *argument_names: str):
128128
"""Create a new TooManyArgumentsException.
129129
130130
:param func_nam: The name of the function where the error occurred.
131-
:param argument_name: Names of the unexpected arguments passed to the function.
131+
:param argument_names: Names of the unexpected arguments passed to the function.
132132
"""
133133
self.func_name = func_name
134-
self.argument_names: tuple[str, ...] = argument_name
134+
self.argument_names: tuple[str, ...] = argument_names
135135
super().__init__(
136136
status=462, name="Too Many Arguments",
137-
descr=f"{func_name} got too many (unknown) arguments: {', '.join(argument_name)}",
137+
descr=f"{func_name} got too many (unknown) arguments: {', '.join(argument_names)}",
138138
)
139139

140140

0 commit comments

Comments
 (0)