From 9187c12df30231e009f74393ef08c47f50926d1f Mon Sep 17 00:00:00 2001 From: Stelios Voutsinas Date: Thu, 17 Oct 2024 15:49:03 -0700 Subject: [PATCH] Add a check that values is not empty --- src/sia/dependencies/query_params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sia/dependencies/query_params.py b/src/sia/dependencies/query_params.py index 2fc2b6d..8bdfe75 100644 --- a/src/sia/dependencies/query_params.py +++ b/src/sia/dependencies/query_params.py @@ -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)