Skip to content

Commit

Permalink
fix: Processing a missing key in the default_values dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
fedmog1lnkv committed Nov 15, 2023
1 parent 1cd6078 commit e186da2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def sort_elements_by_value(arguments):
argument["type"] = param_type

if not route_model.query_required[i]:
argument["value"] = default_values[query]
argument["value"] = default_values.get(query, None)
argument["type"] = f"{param_type} | None"

if route_model.query_is_cookie[i]:
Expand Down

0 comments on commit e186da2

Please sign in to comment.