Skip to content

Commit

Permalink
Fixes #15577: Rudder-api-client fails to clean Null parameters before…
Browse files Browse the repository at this point in the history
… making API calls
  • Loading branch information
Fdall committed Aug 26, 2019
1 parent 864a495 commit 257857b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib.python/rudder.py.src
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ class RudderEndPoint:

# Remove None values in a dictionary
def clean_params(data):
for k in data.keys():
empty_keys = [k for k,v in data.items() if not v]
for k in empty_keys:
if data[k] is None:
del(data[k])

Expand Down

0 comments on commit 257857b

Please sign in to comment.