summaryrefslogtreecommitdiffstats
path: root/lcm
diff options
context:
space:
mode:
Diffstat (limited to 'lcm')
-rw-r--r--lcm/lcm/nf/biz/delete_subscription.py4
1 files 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()