summaryrefslogtreecommitdiffstats
path: root/func/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'func/utils.py')
-rwxr-xr-xfunc/utils.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/func/utils.py b/func/utils.py
index 140b761..c2fbb9f 100755
--- a/func/utils.py
+++ b/func/utils.py
@@ -55,32 +55,26 @@ def remove_exceptions(results):
"""
if results is None:
- print "DEBUG: A"
return REMOTE_CANARY
if str(results).startswith("<Fault"):
- print "DEBUG: B"
return REMOTE_CANARY
if type(results) == xmlrpclib.Fault:
- print "DEBUG: C"
return REMOTE_CANARY
if type(results) == dict:
new_results = {}
for x in results.keys():
value = results[x]
- # print "DEBUG: checking against: %s" % str(value)
if str(value).find("<Fault") == -1:
# there are interesting issues with the way it is imported and type()
# so that is why this hack is here. type(x) != xmlrpclib.Fault appears to miss some things
new_results[x] = value
else:
new_results[x] = REMOTE_CANARY
- # print "DEBUG: removed exceptions = %s" % new_results
return new_results
- print "DEBUG: removed exceptions = %s" % results
return results