X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=apps%2Fpatchwork%2Fbin%2Fpatchwork-cron.py;h=148e97c764c2177007842c55a407fcba00031f72;hb=011ee687fda0d3baf66831279565c14e411eab11;hp=e9bd0c1cf9f07ff3dba81500bd27bbdaebfc5f21;hpb=75d8cf966034e673afe0077ba393d8b2eb3e9b93;p=patchwork diff --git a/apps/patchwork/bin/patchwork-cron.py b/apps/patchwork/bin/patchwork-cron.py index e9bd0c1..148e97c 100755 --- a/apps/patchwork/bin/patchwork-cron.py +++ b/apps/patchwork/bin/patchwork-cron.py @@ -1,13 +1,15 @@ #!/usr/bin/env python import sys -from patchwork.utils import send_notifications +from patchwork.utils import send_notifications, do_expiry def main(args): errors = send_notifications() for (recipient, error) in errors: print "Failed sending to %s: %s" % (recipient.email, ex) + do_expiry() + if __name__ == '__main__': sys.exit(main(sys.argv))