[Backport] Fixing send_notifications command

remotes/origin/issue/4217/improving-mail-design
Alejandro Alonso 2016-10-07 07:44:27 +02:00
parent a10bf440ad
commit a9d46c2bea
1 changed files with 4 additions and 1 deletions

View File

@ -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