From 853b896b3a5eebd4c14383cbb1d9e9169c49267e Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Fri, 7 Oct 2016 07:44:27 +0200 Subject: [PATCH] Fixing send_notifications command --- .../notifications/management/commands/send_notifications.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/taiga/projects/notifications/management/commands/send_notifications.py b/taiga/projects/notifications/management/commands/send_notifications.py index e3eefedc..4c87b569 100644 --- a/taiga/projects/notifications/management/commands/send_notifications.py +++ b/taiga/projects/notifications/management/commands/send_notifications.py @@ -28,4 +28,7 @@ class Command(BaseCommand): def handle(self, *args, **options): qs = HistoryChangeNotification.objects.all() for change_notification in iter_queryset(qs, itersize=100): - send_sync_notifications(change_notification.pk) + try: + send_sync_notifications(change_notification.pk) + except HistoryChangeNotification.DoesNotExist: + pass