Skip to content

Commit 7e13f2d

Browse files
committed
Added code to catch a possible attribute error on event notification.
- Legacy-Id: 15793
1 parent 2d0c503 commit 7e13f2d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ietf/community/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,10 @@ def community_lists_tracking_doc(doc):
169169

170170

171171
def notify_event_to_subscribers(event):
172-
significant = event.type == "changed_state" and event.state_id in [s.pk for s in states_of_significant_change()]
172+
try:
173+
significant = event.type == "changed_state" and event.state_id in [s.pk for s in states_of_significant_change()]
174+
except AttributeError:
175+
significant = False
173176

174177
subscriptions = EmailSubscription.objects.filter(community_list__in=community_lists_tracking_doc(event.doc)).distinct()
175178

0 commit comments

Comments
 (0)