Skip to content

Commit

Permalink
PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
palango committed Aug 7, 2019
1 parent c7a9deb commit 9e50108
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions deployment/builder/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,17 @@ def dockerhub():
if callback_url:
requests.post(url=callback_url, json={"state": "success"})

if callback_url:
requests.post(url=callback_url, json={"state": "success"})
return "OK"

except ImageUpdateError:
print_to_stderr("Error updating local images via docker registry!")
if callback_url:
requests.post(url=callback_url, json={"state": "error"})
except Exception as e:
print_to_stderr(
f"Fatal Error while updating images: Unhandled exception encountered: {e}"
)
raise
finally:
if callback_url:
requests.post(url=callback_url, json={"state": "error"})

return "OK"


Expand Down

0 comments on commit 9e50108

Please sign in to comment.