From af090c1330728d8edb893bbd13a6604e9a56e93e Mon Sep 17 00:00:00 2001 From: Ignacio Heredia Date: Tue, 9 Jul 2024 11:28:43 +0200 Subject: [PATCH] fix(zenodo): properly handle `params=None` --- ai4papi/routers/v1/catalog/datasets/zenodo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ai4papi/routers/v1/catalog/datasets/zenodo.py b/ai4papi/routers/v1/catalog/datasets/zenodo.py index 77d3ac6..dd93497 100644 --- a/ai4papi/routers/v1/catalog/datasets/zenodo.py +++ b/ai4papi/routers/v1/catalog/datasets/zenodo.py @@ -124,6 +124,8 @@ def zenodo_proxy( _ = auth.get_user_info(token=authorization.credentials) # Convert params to frozenset + if params is None: + params = {} fparams = frozenset(params.items()) return _zenodo_proxy(api_route, fparams)