diff --git a/tests/dummysmtpd.py b/tests/dummysmtpd.py --- a/tests/dummysmtpd.py +++ b/tests/dummysmtpd.py @@ -54,8 +54,8 @@ try: # wrap_socket() would block, but we don't care conn = sslutil.wrapserversocket(conn, ui, certfile=self._certfile) - except ssl.SSLError: - log('%s ssl error\n' % addr[0]) + except ssl.SSLError as e: + log('%s ssl error: %r\n' % (addr[0], e)) conn.close() return smtpd.SMTPChannel(self, conn, addr)