mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-24 07:37:04 +00:00
simple fault catching email admin
This commit is contained in:
parent
ca5fb3c2e0
commit
4323b5af01
@ -25,7 +25,11 @@ subject = sys.argv[1]
|
||||
admin_addr = "administrator@" + env['PRIMARY_HOSTNAME']
|
||||
|
||||
# Read in STDIN.
|
||||
content = sys.stdin.read().strip()
|
||||
try:
|
||||
content = sys.stdin.read().strip()
|
||||
except:
|
||||
print("error occured while cleaning input text")
|
||||
sys.exit(1)
|
||||
|
||||
# If there's nothing coming in, just exit.
|
||||
if content == "":
|
||||
|
Loading…
Reference in New Issue
Block a user