Skip to content

Commit

Permalink
fix(zenodo): properly handle params=None
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnacioHeredia committed Jul 9, 2024
1 parent feb2883 commit af090c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ai4papi/routers/v1/catalog/datasets/zenodo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit af090c1

Please sign in to comment.