From 01ee77eb6b6cd1f3c2be5555be278fb2363fd933 Mon Sep 17 00:00:00 2001 From: Sean Whalen Date: Fri, 11 Jan 2019 12:27:50 -0500 Subject: [PATCH] Print tracebacks --- parsedmarc/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/parsedmarc/cli.py b/parsedmarc/cli.py index 775dc3f..c069bcf 100644 --- a/parsedmarc/cli.py +++ b/parsedmarc/cli.py @@ -11,6 +11,8 @@ from collections import OrderedDict import json from ssl import CERT_NONE, create_default_context +import traceback + from parsedmarc import IMAPError, get_dmarc_reports_from_inbox, \ parse_report_file, elastic, kafkaclient, splunk, save_output, \ watch_inbox, email_results, SMTPError, ParserError, __version__ @@ -372,6 +374,7 @@ def _main(): subject=args.outgoing_subject) except SMTPError as error: logger.error("SMTP Error: {0}".format(error.__str__())) + traceback.print_tb() exit(1) if args.host and args.watch: