From e6f8396661b3c12e0cc72941f9b8e635989469fa Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Mon, 25 May 2020 01:52:37 +0300 Subject: refactoring --- kvmd/apps/vnc/rfb/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kvmd/apps/vnc/rfb/__init__.py') diff --git a/kvmd/apps/vnc/rfb/__init__.py b/kvmd/apps/vnc/rfb/__init__.py index 279c18bf..b5d690b3 100644 --- a/kvmd/apps/vnc/rfb/__init__.py +++ b/kvmd/apps/vnc/rfb/__init__.py @@ -106,9 +106,9 @@ class RfbClient(RfbClientStream): # pylint: disable=too-many-instance-attribute logger.info("[%s] Client %s: Cancelling subtask ...", name, self._remote) raise except RfbConnectionError as err: - logger.info("[%s] Client %s: Gone: %s", name, self._remote, str(err)) + logger.info("[%s] Client %s: Gone: %s", name, self._remote, err) except (RfbError, ssl.SSLError) as err: - logger.error("[%s] Client %s: Error: %s", name, self._remote, str(err)) + logger.error("[%s] Client %s: Error: %s", name, self._remote, err) except Exception: logger.exception("[%s] Unhandled exception with client %s", name, self._remote) -- cgit v1.2.3