Skip to content

Commit

Permalink
Only clean passed json if it is a dictionary
Browse files Browse the repository at this point in the history
This addresses an issue where clean dict would fail when some of the application command endpoints passed lists instead of dictionaries.
  • Loading branch information
Bluenix2 committed Apr 7, 2022
1 parent 18e8fb2 commit f95688e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/wumpy-rest/wumpy/rest/endpoints/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ async def request(
"""

# Clean up MISSING values
if json is not None:
if isinstance(json, dict):
json = self._clean_dict(json)
if data is not None:
data = self._clean_dict(data)
Expand Down

0 comments on commit f95688e

Please sign in to comment.