From 97209d3888d925be9e86e9d06b235d43b8e97b7b Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Feb 02 2017 00:20:08 +0000 Subject: Handle exception when reporting results --- diff --git a/autocloudreporter.py b/autocloudreporter.py index 6889cc9..1325935 100644 --- a/autocloudreporter.py +++ b/autocloudreporter.py @@ -78,7 +78,10 @@ class AutocloudReporter(fedmsg.consumers.FedmsgConsumer): ref_url="{0}/jobs/{1}/output".format(self.autocloud_url, job_id), source='autocloud' ) - res.report(rdb_instance) + try: + res.report(rdb_instance) + except Exception as err: + self._log('error', "Reporting error! {0}".format(err)) return