Added code to catch a possible attribute error on event notification.
- Legacy-Id: 15793
This commit is contained in:
parent
2d0c503d33
commit
7e13f2dc6a
|
@ -169,7 +169,10 @@ def community_lists_tracking_doc(doc):
|
|||
|
||||
|
||||
def notify_event_to_subscribers(event):
|
||||
significant = event.type == "changed_state" and event.state_id in [s.pk for s in states_of_significant_change()]
|
||||
try:
|
||||
significant = event.type == "changed_state" and event.state_id in [s.pk for s in states_of_significant_change()]
|
||||
except AttributeError:
|
||||
significant = False
|
||||
|
||||
subscriptions = EmailSubscription.objects.filter(community_list__in=community_lists_tracking_doc(event.doc)).distinct()
|
||||
|
||||
|
|
Loading…
Reference in a new issue