def __exception_handler(_, context): exc = context.get('exception') if not isinstance(exc, OpenSSL.SSL.SysCallError): logger.exception(exc)
def exception_handler(self, _, context): exc = context.get('exception') # See https://github.com/horazont/aioopenssl/issues/2 if not isinstance(exc, OpenSSL.SSL.SysCallError): logger.exception(exc)