Skip to content

Commit a5c3946

Browse files
Merge pull request #2307 from laws-africa/task-bug
fix background task bug
2 parents 739be75 + 47bf124 commit a5c3946

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indigo_app/notifications.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def notify_new_user_signed_up(user_id):
212212
def notify_annotation_reply_posted(annotation_id):
213213
try:
214214
notifier.notify_reply_to_annotation(Annotation.objects.get(pk=annotation_id))
215-
except Comment.DoesNotExist:
215+
except Annotation.DoesNotExist:
216216
log.warning("Annotation with id {} doesn't exist, ignoring".format(annotation_id))
217217

218218
@background(queue='indigo')

0 commit comments

Comments
 (0)