summaryrefslogtreecommitdiffstats
path: root/utils/functest_utils.py
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-08-22 12:08:13 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-08-22 12:08:13 +0000
commitc57935ad4099a7f24f14e6ebb26d4a87dadb08d9 (patch)
treed8f2eae972fd59b4b3fafe6534034430f9923fc7 /utils/functest_utils.py
parenteb8fe6b69b5c311b449037f3a12a9141e1acedfd (diff)
parent95b85b2da2e60b9b6ed7bfa1c3f457b43e01a524 (diff)
Merge "bugfix: push_result_to_db exception show"
Diffstat (limited to 'utils/functest_utils.py')
-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 b83309e3a..807a671a3 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')]:" %