Skip to content

Commit 7ca1431

Browse files
committed
attempt to fix issues seen in logs
1 parent 03af4eb commit 7ca1431

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fedn/network/api/v1/shared.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ def get_post_data_to_kwargs(request: object) -> dict:
6161
except Exception:
6262
request_data = {}
6363

64+
# Ensure request_data is a dictionary
65+
if not isinstance(request_data, dict):
66+
request_data = {}
67+
6468
kwargs = {}
6569
for key, value in request_data.items():
6670
if isinstance(value, str) and "," in value:

0 commit comments

Comments
 (0)