Update python2 to python3
[vfc/nfvo/lcm.git] / lcm / ns / views / deprecated / inst_ns_view.py
index 7ce3c3c..66ec70b 100644 (file)
@@ -49,5 +49,5 @@ class NSInstView(APIView):
             return Response(data=ack['data'], status=ack['status'])
         except Exception as e:
             logger.error(traceback.format_exc())
-            logger.error("Exception in InstNS: %s", e.message)
-            return Response(data={'error': e.message}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)
+            logger.error("Exception in InstNS: %s", e.args[0])
+            return Response(data={'error': e.args[0]}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)