summaryrefslogtreecommitdiff
path: root/kvmd/plugins/atx
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-09-13 17:19:57 +0300
committerDevaev Maxim <[email protected]>2020-09-13 17:19:57 +0300
commit41223fa8b24be7978f320781c4b0e3d7b2347c75 (patch)
tree1841f30ae84f61e96b96a91d018d2a7ea85f523c /kvmd/plugins/atx
parent002823b6e1ae6a261e77ee83b358307c682ce65a (diff)
pass close()
Diffstat (limited to 'kvmd/plugins/atx')
-rw-r--r--kvmd/plugins/atx/gpio.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/kvmd/plugins/atx/gpio.py b/kvmd/plugins/atx/gpio.py
index bd49513c..70354da4 100644
--- a/kvmd/plugins/atx/gpio.py
+++ b/kvmd/plugins/atx/gpio.py
@@ -133,7 +133,10 @@ class Plugin(BaseAtx): # pylint: disable=too-many-instance-attributes
async def cleanup(self) -> None:
if self.__chip:
- self.__chip.close()
+ try:
+ self.__chip.close()
+ except Exception:
+ pass
# =====