summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lcm/lcm/nf/views/curd_vnf_views.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lcm/lcm/nf/views/curd_vnf_views.py b/lcm/lcm/nf/views/curd_vnf_views.py
index 25a98af8..6db70b7c 100644
--- a/lcm/lcm/nf/views/curd_vnf_views.py
+++ b/lcm/lcm/nf/views/curd_vnf_views.py
@@ -27,6 +27,7 @@ from lcm.nf.serializers.create_vnf_req import CreateVnfReqSerializer
from lcm.nf.serializers.vnf_instance import VnfInstanceSerializer
from lcm.nf.serializers.vnf_instances import VnfInstancesSerializer
from lcm.pub.exceptions import NFLCMException
+from lcm.pub.exceptions import NFLCMExceptionNotFound
logger = logging.getLogger(__name__)
@@ -109,6 +110,8 @@ class DeleteVnfAndQueryVnf(APIView):
except NFLCMException as e:
logger.error(e.message)
return Response(data={'error': '%s' % e.message}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)
+ except NFLCMExceptionNotFound as e:
+ return Response(data={'error': '%s' % e.message}, status=status.HTTP_404_NOT_FOUND)
except Exception as e:
logger.error(e.message)
logger.error(traceback.format_exc())