From e7a0c4fabcfc4e29a1349d24ffc3c59734690d82 Mon Sep 17 00:00:00 2001 From: hongyuzhao Date: Tue, 3 Sep 2019 13:09:31 +0800 Subject: fix bug for failure in deleting subscriptions for vnfm Change-Id: I3127f65f364e39a172cd0634da5a7218fabe20f0 Issue-ID: VFC-1508 Signed-off-by: hongyuzhao --- lcm/lcm/nf/biz/delete_subscription.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lcm/lcm/nf/biz/delete_subscription.py b/lcm/lcm/nf/biz/delete_subscription.py index 387aa5d9..6310586a 100644 --- a/lcm/lcm/nf/biz/delete_subscription.py +++ b/lcm/lcm/nf/biz/delete_subscription.py @@ -15,7 +15,7 @@ import logging from lcm.pub.database.models import SubscriptionModel -from lcm.pub.exceptions import NFLCMException +from lcm.pub.exceptions import NFLCMExceptionNotFound logger = logging.getLogger(__name__) @@ -27,5 +27,5 @@ class DeleteSubscription: def delete_single_subscription(self): subscription = SubscriptionModel.objects.filter(subscription_id=self.subscription_id) if not subscription.exists(): - raise NFLCMException('Subscription(%s) does not exist' % self.subscription_id) + raise NFLCMExceptionNotFound('Subscription(%s) does not exist' % self.subscription_id) subscription.delete() -- cgit 1.2.3-korg