moksha/lib/helpers.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit f77af904798853e6a7c4a0cf6874cef03b2fdabe
Author: John (J5) Palmieri <johnp(a)redhat.com>
Date: Tue Mar 31 19:10:50 2009 -0400
don't pass None params since they get evaluated to the string 'None'
diff --git a/moksha/lib/helpers.py b/moksha/lib/helpers.py
index eef8bf6..eb800d2 100644
--- a/moksha/lib/helpers.py
+++ b/moksha/lib/helpers.py
@@ -45,7 +45,8 @@ def _update_params(params, d):
# FIXME: This should be recursive
value = json.dumps(value)
- p[k] = value
+ if value != None:
+ p[k] = value
return p
Show replies by date