summaryrefslogtreecommitdiff
path: root/kvmd/plugins/msd/relay/__init__.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-07-23 11:17:36 +0300
committerMaxim Devaev <[email protected]>2022-07-24 05:38:26 +0300
commitde140537254a517559c78de048791a197011c1f6 (patch)
tree48560052d4f49bd4a1d6bb08b1e7ce1a4e2874b8 /kvmd/plugins/msd/relay/__init__.py
parentbaeb2bc35b82ea12777100d70156e74fb162325a (diff)
refactoring
Diffstat (limited to 'kvmd/plugins/msd/relay/__init__.py')
-rw-r--r--kvmd/plugins/msd/relay/__init__.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/kvmd/plugins/msd/relay/__init__.py b/kvmd/plugins/msd/relay/__init__.py
index 125f5fb9..2cdc5796 100644
--- a/kvmd/plugins/msd/relay/__init__.py
+++ b/kvmd/plugins/msd/relay/__init__.py
@@ -262,13 +262,8 @@ class Plugin(BaseMsd): # pylint: disable=too-many-instance-attributes
get_logger().error("Can't write image info because device is full")
async def __close_device_writer(self) -> None:
- try:
- if self.__device_writer:
- get_logger().info("Closing device file ...")
- await self.__device_writer.close() # type: ignore
- except Exception:
- get_logger().exception("Can't close device file")
- finally:
+ if self.__device_writer:
+ await self.__device_writer.close() # type: ignore
self.__device_writer = None
async def __load_device_info(self) -> None: