diff options
Diffstat (limited to 'azure/multicloud_azure/swagger/views/flavor/views.py')
-rw-r--r-- | azure/multicloud_azure/swagger/views/flavor/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azure/multicloud_azure/swagger/views/flavor/views.py b/azure/multicloud_azure/swagger/views/flavor/views.py index c4eb060..8b65cea 100644 --- a/azure/multicloud_azure/swagger/views/flavor/views.py +++ b/azure/multicloud_azure/swagger/views/flavor/views.py @@ -27,7 +27,7 @@ class FlavorsView(APIView): def post(self, request, vimid): try: create_req = json.loads(request.body) - except Exception as e: + except Exception: return Response(data={'error': 'Fail to decode request body.'}, status=status.HTTP_500_INTERNAL_SERVER_ERROR) |