summaryrefslogtreecommitdiff
path: root/kvmd/plugins/ugpio/pway.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/plugins/ugpio/pway.py')
-rw-r--r--kvmd/plugins/ugpio/pway.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/ugpio/pway.py b/kvmd/plugins/ugpio/pway.py
index 25a1f454..140cf02a 100644
--- a/kvmd/plugins/ugpio/pway.py
+++ b/kvmd/plugins/ugpio/pway.py
@@ -153,9 +153,9 @@ class Plugin(BaseUserGpioDriver): # pylint: disable=too-many-instance-attribute
assert channel is not None
self.__send_channel(tty, channel)
- except Exception as err:
+ except Exception as ex:
self.__channel_queue.put_nowait(None)
- if isinstance(err, serial.SerialException) and err.errno == errno.ENOENT: # pylint: disable=no-member
+ if isinstance(ex, serial.SerialException) and ex.errno == errno.ENOENT: # pylint: disable=no-member
logger.error("Missing %s serial device: %s", self, self.__device_path)
else:
logger.exception("Unexpected %s error", self)