From 65d5ed1bdf7e24b1299445bd8bff264b9ce41e68 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 2 Dec 2021 10:54:04 +0100 Subject: [PATCH] raise not implemented --- InvenTree/common/notifications.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/InvenTree/common/notifications.py b/InvenTree/common/notifications.py index 1c0545c63e..49071ab0c3 100644 --- a/InvenTree/common/notifications.py +++ b/InvenTree/common/notifications.py @@ -122,6 +122,8 @@ def trigger_notifaction(obj, entry_name=None, obj_ref='pk', receivers=None, rece logger.info(f"Triggering method '{method.method_name}'") try: deliver_notification(method, obj, entry_name, receivers, notification_context) + except NotImplementedError as error: + raise error except Exception as error: logger.error(error)