changed quit() and put it in a while loop to keep trying. never give up.

This commit is contained in:
John Leonardo 2016-08-14 00:29:30 -07:00 committed by GitHub
parent e9368de462
commit 8102f2020b
1 changed files with 2 additions and 2 deletions

View File

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