From fa66b767afa73516358da0f8a9df161c2bb6d74e Mon Sep 17 00:00:00 2001 From: KiekerJan Date: Mon, 26 Jul 2021 10:04:35 +0200 Subject: [PATCH] add debugging info to email admin tool --- management/email_administrator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/management/email_administrator.py b/management/email_administrator.py index 37822622..5b877f1c 100755 --- a/management/email_administrator.py +++ b/management/email_administrator.py @@ -2,7 +2,7 @@ # Reads in STDIN. If the stream is not empty, mail it to the system administrator. -import sys +import sys, traceback import html import smtplib @@ -29,6 +29,7 @@ try: content = sys.stdin.read().strip() except: print("error occured while cleaning input text") + traceback.print_exc() sys.exit(1) # If there's nothing coming in, just exit.