From 55ca284a13e966d40fd07324a5c138f51660dca2 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 4 Dec 2021 04:22:07 +0100 Subject: [PATCH] Revert "this wont happen" This reverts commit 3047bd66127e3ccd1ec66e90e4ad6e0c16322c7f. --- InvenTree/common/notifications.py | 3 +++ 1 file changed, 3 insertions(+) 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()