Skip to content

Commit

Permalink
Add a check that values is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
stvoutsin committed Oct 17, 2024
1 parent 4f80641 commit 9187c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sia/dependencies/query_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async def get_sia_params_dependency(
post_params_ddict[key].append(value)

post_params = {
key: (values[0] if key in SINGLE_PARAMS else values)
key: (values[0] if key in SINGLE_PARAMS and values else values)
for key, values in post_params_ddict.items()
}
params = SIAQueryParams.from_dict(post_params)
Expand Down

0 comments on commit 9187c12

Please sign in to comment.