Merge "Remove unused exception catch in revert"

This commit is contained in:
Zuul 2020-01-20 13:44:15 +00:00 committed by Gerrit Code Review
commit 1537764a9a
1 changed files with 0 additions and 2 deletions

View File

@ -207,8 +207,6 @@ class VolumeController(volumes_v2.VolumeController):
self.volume_api.revert_to_snapshot(context, volume, l_snap)
except (exception.InvalidVolume, exception.InvalidSnapshot) as e:
raise exc.HTTPConflict(explanation=six.text_type(e))
except exception.VolumeSizeExceedsAvailableQuota as e:
raise exc.HTTPForbidden(explanation=six.text_type(e))
def _get_image_snapshot(self, context, image_uuid):
image_snapshot = None