summaryrefslogtreecommitdiffstats
path: root/azure/multicloud_azure/swagger/views/flavor/views.py
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2019-12-11 05:39:21 +0000
committerBin Yang <bin.yang@windriver.com>2019-12-11 05:39:21 +0000
commit03386aae18234fcf70b29d80e3ac577791a90dd0 (patch)
treed789eae1d1ac0baacc6426a2280ca0de2f34b018 /azure/multicloud_azure/swagger/views/flavor/views.py
parent61d7d474895188ba05ed484c0550babb5f23451e (diff)
Fix tox issue
set basepython 2.7 for all tox test Change-Id: Ie607a6c6780790c26311bed3fb940b5892d375e6 Issue-ID: MULTICLOUD-963 Signed-off-by: Bin Yang <bin.yang@windriver.com>
Diffstat (limited to 'azure/multicloud_azure/swagger/views/flavor/views.py')
-rw-r--r--azure/multicloud_azure/swagger/views/flavor/views.py2
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)