diff --git a/InvenTree/common/notifications.py b/InvenTree/common/notifications.py index 5a6666b7be..cbfde42cda 100644 --- a/InvenTree/common/notifications.py +++ b/InvenTree/common/notifications.py @@ -218,6 +218,9 @@ def deliver_notification(cls: NotificationMethod, obj, category: str, targets, c else: success = False + else: + raise NotImplementedError('No delivery method found') + # Run cleanup for delivery method method.cleanup()