add debugging info to email admin tool

This commit is contained in:
KiekerJan 2021-07-26 10:04:35 +02:00
parent af079a1139
commit fa66b767af
1 changed files with 2 additions and 1 deletions

View File

@ -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.