From 41223fa8b24be7978f320781c4b0e3d7b2347c75 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Sun, 13 Sep 2020 17:19:57 +0300 Subject: pass close() --- kvmd/plugins/msd/relay.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'kvmd/plugins/msd') diff --git a/kvmd/plugins/msd/relay.py b/kvmd/plugins/msd/relay.py index 07e9f85e..64eab56e 100644 --- a/kvmd/plugins/msd/relay.py +++ b/kvmd/plugins/msd/relay.py @@ -183,7 +183,10 @@ class _Gpio: def close(self) -> None: if self.__chip: - self.__chip.close() + try: + self.__chip.close() + except Exception: + pass def switch_to_local(self) -> None: assert self.__target_line -- cgit v1.2.3