Change-Id: I3127f65f364e39a172cd0634da5a7218fabe20f0
Issue-ID: VFC-1508
Signed-off-by: hongyuzhao <zhao.hongyu@zte.com.cn>
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__)
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()