mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Handle null case for delivery_methods (#6411)
This commit is contained in:
parent
f88d5577d1
commit
fc86064bd1
@ -422,7 +422,7 @@ def trigger_notification(obj, category=None, obj_ref='pk', **kwargs):
|
|||||||
|
|
||||||
# Collect possible methods
|
# Collect possible methods
|
||||||
if delivery_methods is None:
|
if delivery_methods is None:
|
||||||
delivery_methods = storage.liste
|
delivery_methods = storage.liste or []
|
||||||
else:
|
else:
|
||||||
delivery_methods = delivery_methods - IGNORED_NOTIFICATION_CLS
|
delivery_methods = delivery_methods - IGNORED_NOTIFICATION_CLS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user