]> git.ozlabs.org Git - patchwork/blob - apps/patchwork/bin/patchwork-cron.py
e9bd0c1cf9f07ff3dba81500bd27bbdaebfc5f21
[patchwork] / apps / patchwork / bin / patchwork-cron.py
1 #!/usr/bin/env python
2
3 import sys
4 from patchwork.utils import send_notifications
5
6 def main(args):
7     errors = send_notifications()
8     for (recipient, error) in errors:
9         print "Failed sending to %s: %s" % (recipient.email, ex)
10
11 if __name__ == '__main__':
12     sys.exit(main(sys.argv))
13