From 4c6344497ea9e66823c0c6361b744822336c4c56 Mon Sep 17 00:00:00 2001 From: Ross Hays Date: Wed, 6 May 2015 15:58:42 -0400 Subject: [PATCH] Fixing a syntax error with one of the exception handlers --- scripts/mailtest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mailtest b/scripts/mailtest index 3c0548c..5d663a4 100755 --- a/scripts/mailtest +++ b/scripts/mailtest @@ -172,7 +172,7 @@ except smtplib.SMTPException as e: if 'SMTP AUTH extension not supported by server' in e.args[0]: print(" Authorization is not available - you may need to use TLS", file=sys.stderr) sys.exit(1) -except ValueError: +except ValueError as e: print_error("ERROR: {}".format(e.args[-1]), file=sys.stderr) sys.exit(1) -- 2.25.1