From fc86064bd13f4b42a0b5c3c7bc68e9f7aa92e140 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 5 Feb 2024 21:24:59 +1100 Subject: [PATCH] Handle null case for delivery_methods (#6411) --- 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 ada7b5da0b..7e3c4016f1 100644 --- a/InvenTree/common/notifications.py +++ b/InvenTree/common/notifications.py @@ -422,7 +422,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