From 0804ecf5386d9ffc2b336d70956675d8f2a2ab27 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 21:29:24 +1100 Subject: [PATCH] Handle null case for delivery_methods (#6411) (#6413) (cherry picked from commit fc86064bd13f4b42a0b5c3c7bc68e9f7aa92e140) Co-authored-by: Oliver --- InvenTree/common/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/common/notifications.py b/InvenTree/common/notifications.py index 819b10a000..0dfd57fdf4 100644 --- a/InvenTree/common/notifications.py +++ b/InvenTree/common/notifications.py @@ -390,7 +390,7 @@ def trigger_notification(obj, category=None, obj_ref='pk', **kwargs): # Collect possible methods if delivery_methods is None: - delivery_methods = storage.liste + delivery_methods = storage.liste or [] else: delivery_methods = (delivery_methods - IGNORED_NOTIFICATION_CLS)