From 60a9f40c0afb0dce6814be294f306d4d037f122f Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Thu, 10 Oct 2013 13:05:24 -0300 Subject: catch unhandled exception and show backtrace --- src/leap/mail/smtp/__init__.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/leap/mail') diff --git a/src/leap/mail/smtp/__init__.py b/src/leap/mail/smtp/__init__.py index 4e5d2a0..b30cd20 100644 --- a/src/leap/mail/smtp/__init__.py +++ b/src/leap/mail/smtp/__init__.py @@ -86,3 +86,6 @@ def setup_smtp_relay(port, keymanager, smtp_host, smtp_port, "cannot listen in port %s" % ( smtp_port,)) signal(proto.SMTP_SERVICE_FAILED_TO_START, str(smtp_port)) + except Exception as exc: + logger.error("Unhandled error while launching smtp relay service") + logger.exception(exc) -- cgit v1.2.3