mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-01-11 10:37:05 +00:00
add debugging info to email admin tool
This commit is contained in:
parent
af079a1139
commit
fa66b767af
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Reads in STDIN. If the stream is not empty, mail it to the system administrator.
|
# Reads in STDIN. If the stream is not empty, mail it to the system administrator.
|
||||||
|
|
||||||
import sys
|
import sys, traceback
|
||||||
|
|
||||||
import html
|
import html
|
||||||
import smtplib
|
import smtplib
|
||||||
@ -29,6 +29,7 @@ try:
|
|||||||
content = sys.stdin.read().strip()
|
content = sys.stdin.read().strip()
|
||||||
except:
|
except:
|
||||||
print("error occured while cleaning input text")
|
print("error occured while cleaning input text")
|
||||||
|
traceback.print_exc()
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
# If there's nothing coming in, just exit.
|
# If there's nothing coming in, just exit.
|
||||||
|
Loading…
Reference in New Issue
Block a user