summaryrefslogtreecommitdiff
path: root/kvmd/apps/vnc
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-05-25 01:52:37 +0300
committerDevaev Maxim <[email protected]>2020-05-25 01:52:37 +0300
commite6f8396661b3c12e0cc72941f9b8e635989469fa (patch)
tree0ef5df151a8404b63bf41ac0ac48f369c4ba53eb /kvmd/apps/vnc
parentd5dca5a8b4eadd988505a6d84e2807cbea6c6d11 (diff)
refactoring
Diffstat (limited to 'kvmd/apps/vnc')
-rw-r--r--kvmd/apps/vnc/rfb/__init__.py4
-rw-r--r--kvmd/apps/vnc/server.py2
2 files changed, 3 insertions, 3 deletions
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)
diff --git a/kvmd/apps/vnc/server.py b/kvmd/apps/vnc/server.py
index c7d376d8..015b4581 100644
--- a/kvmd/apps/vnc/server.py
+++ b/kvmd/apps/vnc/server.py
@@ -180,7 +180,7 @@ class _Client(RfbClient): # pylint: disable=too-many-instance-attributes
else:
await self.__send_fb_stub("No signal")
except StreamerError as err:
- logger.info("[streamer] Client %s: Waiting for stream: %s", self._remote, str(err))
+ logger.info("[streamer] Client %s: Waiting for stream: %s", self._remote, err)
await self.__send_fb_stub("Waiting for stream ...")
await asyncio.sleep(1)