1 from django.core.management.base import BaseCommand
2 from patchwork.utils import send_notifications, do_expiry
5 class Command(BaseCommand):
6 help = ('Run periodic patchwork functions: send notifications and '
9 def handle(self, *args, **kwargs):
10 errors = send_notifications()
11 for (recipient, error) in errors:
12 self.stderr.write("Failed sending to %s: %s" %
13 (recipient.email, error))