Skip to content

Commit

Permalink
Ensure that parsed args have enough args.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamghill committed Dec 23, 2023
1 parent 03d9b5c commit ed6479e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_unicorn/views/action_parsers/call_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def _call_method_name(component: UnicornView, method_name: str, args: Tuple[Any]

elif argument in kwargs:
parsed_kwargs[argument] = cast_value(type_hint, kwargs[argument])
else:
elif len(args) > len(parsed_args):
parsed_args.append(cast_value(type_hint, args[len(parsed_args)]))
elif argument in kwargs:
parsed_kwargs[argument] = kwargs[argument]
Expand Down

0 comments on commit ed6479e

Please sign in to comment.