Update python2 to python3
[vfc/nfvo/lcm.git] / lcm / ns_vnfs / views / vnf_views.py
index c096c02..593ac76 100644 (file)
@@ -55,8 +55,8 @@ class VnfGrantView(APIView):
             return Response(data=resp_serializer.data, status=status.HTTP_201_CREATED)
         except Exception as e:
             logger.error(traceback.format_exc())
-            logger.error("Exception in VnfGrant: %s", e.message)
-            return Response(data={'error': e.message}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)
+            logger.error("Exception in VnfGrant: %s", e.args[0])
+            return Response(data={'error': e.args[0]}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)
 
 
 class VnfNotifyView(APIView):