2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 11:36:44 +00:00

Handle null case for delivery_methods (#6411) (#6413)

(cherry picked from commit fc86064bd13f4b42a0b5c3c7bc68e9f7aa92e140)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
github-actions[bot] 2024-02-05 21:29:24 +11:00 committed by GitHub
parent 39176d9a19
commit 0804ecf538
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)