Skip to content
Snippets Groups Projects
Commit e043fab3 authored by Jeffrey Zhang's avatar Jeffrey Zhang
Browse files

Catch all the exception in the push thread

Change-Id: I1ba48cd25e529bdd846d3ded1f5923f312e5d17d
Closes-Bug: #1574931
parent 2705d67f
No related branches found
No related tags found
No related merge requests found
......@@ -102,6 +102,9 @@ class PushThread(threading.Thread):
' have the correct privileges to run Docker'
' (root)', image['name'])
image['status'] = "connection_error"
except Exception:
LOG.exception('%s:Unknown error when pushing', image['name'])
image['status'] = "push_error"
finally:
if "error" not in image['status']:
LOG.info('%s:Pushed successfully', image['name'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment