Add ServerError catch in dirty error's error management

parent 9e9ad98f
...@@ -594,7 +594,7 @@ class Slapgrid(object): ...@@ -594,7 +594,7 @@ class Slapgrid(object):
raise raise
# Buildout failed: send log but don't print it to output (already done) # Buildout failed: send log but don't print it to output (already done)
except BuildoutFailedError, exception: except BuildoutFailedError as exception:
clean_run = False clean_run = False
try: try:
software_release.error(exception) software_release.error(exception)
...@@ -620,8 +620,8 @@ class Slapgrid(object): ...@@ -620,8 +620,8 @@ class Slapgrid(object):
elif state == 'destroyed': elif state == 'destroyed':
try: try:
software_release.destroyed() software_release.destroyed()
except NotFoundError: except (NotFoundError, ServerError):
pass print traceback.format_exc()
logger.info("Finished software releases.") logger.info("Finished software releases.")
# Return success value # Return success value
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment