Merge "Catch all the exception in the push thread"
This commit is contained in:
commit
cf3e68213e
@ -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'])
|
||||||
|
Loading…
Reference in New Issue
Block a user