diff options
Diffstat (limited to 'kvmd/plugins/hid/serial.py')
-rw-r--r-- | kvmd/plugins/hid/serial.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kvmd/plugins/hid/serial.py b/kvmd/plugins/hid/serial.py index 23f6c136..ff018826 100644 --- a/kvmd/plugins/hid/serial.py +++ b/kvmd/plugins/hid/serial.py @@ -176,7 +176,10 @@ class _Gpio: def close(self) -> None: if self.__chip: - self.__chip.close() + try: + self.__chip.close() + except Exception: + pass @aiotools.atomic async def reset(self) -> None: |