changed quit() and put it in a while loop to keep trying. never give up.
This commit is contained in:
parent
e9368de462
commit
8102f2020b
|
@ -22,8 +22,8 @@ admin_addr = "administrator@" + env['PRIMARY_HOSTNAME']
|
||||||
content = sys.stdin.read().strip()
|
content = sys.stdin.read().strip()
|
||||||
|
|
||||||
# If there's nothing coming in, just exit.
|
# If there's nothing coming in, just exit.
|
||||||
if content == "":
|
while content == "":
|
||||||
sys.exit(0)
|
content = sys.stdin.read().strip()
|
||||||
|
|
||||||
# create MIME message
|
# create MIME message
|
||||||
msg = Message()
|
msg = Message()
|
||||||
|
|
Loading…
Reference in New Issue