Merge "Trivial - Follow Up: No Retry on Disk Space Error"
This commit is contained in:
1 changed files with 3 additions and 3 deletions
@@ -698,13 +698,13 @@ def _download_image(image_info):
except OSError as e:
if e.errno == errno.ENOSPC:
msg = ('Unable to write image to {}. Error: {}'
).format(image_location, str(e))
).format(image_location, e)
raise errors.ImageDownloadOutofSpaceError(
image_info['id'], msg)
raise
except errors.ImageDownloadOutofSpaceError:
raise
except Exception as e:
if isinstance(e, errors.ImageDownloadOutofSpaceError):
raise
msg = 'Unable to write image to {}. Error: {}'.format(
image_location, str(e))
raise errors.ImageDownloadError(image_info['id'], msg)
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.