Merge "Catch all the exception in the push thread"

This commit is contained in:
Jenkins 2016-05-10 21:02:47 +00:00 committed by Gerrit Code Review
commit cf3e68213e

View File

@ -104,6 +104,9 @@ class PushThread(threading.Thread):
' have the correct privileges to run Docker' ' have the correct privileges to run Docker'
' (root)', image['name']) ' (root)', image['name'])
image['status'] = "connection_error" image['status'] = "connection_error"
except Exception:
LOG.exception('%s:Unknown error when pushing', image['name'])
image['status'] = "push_error"
finally: finally:
if "error" not in image['status']: if "error" not in image['status']:
LOG.info('%s:Pushed successfully', image['name']) LOG.info('%s:Pushed successfully', image['name'])