summaryrefslogtreecommitdiffstats
path: root/module/network/HTTPBase.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/network/HTTPBase.py')
-rw-r--r--module/network/HTTPBase.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/network/HTTPBase.py b/module/network/HTTPBase.py
index 2737fd33c..7627c8499 100644
--- a/module/network/HTTPBase.py
+++ b/module/network/HTTPBase.py
@@ -333,8 +333,9 @@ class HTTPBase():
print "[HTTP] creating request"
print "[HTTP] URL:", url
print "[HTTP] GET"
- for key, value in get.iteritems():
- print "[HTTP] \t", key, ":", value
+ if get:
+ for key, value in get.iteritems():
+ print "[HTTP] \t", key, ":", value
if post:
print "[HTTP] POST"
for key, value in post.iteritems():