aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/functest_utils.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/functest_utils.py b/utils/functest_utils.py
index b83309e3..807a671a 100644
--- a/utils/functest_utils.py
+++ b/utils/functest_utils.py
@@ -221,6 +221,11 @@ def push_results_to_db(project, case_name, logger,
logger.debug(r)
r.raise_for_status()
return True
+ except requests.RequestException:
+ if logger:
+ logger.error("Pushing Result to DB(%s) failed: %s" %
+ (r.url, r.content))
+ return False
except Exception, e:
print("Error [push_results_to_db('%s', '%s', '%s', '%s',"
"'%s', '%s', '%s', '%s', '%s')]:" %