From 8102f2020bc0be20e2ea1ad97cfd0bff9aa298b6 Mon Sep 17 00:00:00 2001 From: John Leonardo Date: Sun, 14 Aug 2016 00:29:30 -0700 Subject: [PATCH] changed quit() and put it in a while loop to keep trying. never give up. --- management/email_administrator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/management/email_administrator.py b/management/email_administrator.py index b16fda1d..94de3418 100755 --- a/management/email_administrator.py +++ b/management/email_administrator.py @@ -22,8 +22,8 @@ admin_addr = "administrator@" + env['PRIMARY_HOSTNAME'] content = sys.stdin.read().strip() # If there's nothing coming in, just exit. -if content == "": - sys.exit(0) +while content == "": + content = sys.stdin.read().strip() # create MIME message msg = Message()