diff options
Diffstat (limited to 'utils/functest_utils.py')
-rw-r--r-- | utils/functest_utils.py | 5 |
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')]:" % |