summaryrefslogtreecommitdiff
path: root/kvmd/plugins/ugpio/cmdret.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/plugins/ugpio/cmdret.py')
-rw-r--r--kvmd/plugins/ugpio/cmdret.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/ugpio/cmdret.py b/kvmd/plugins/ugpio/cmdret.py
index 0eea78f6..7080a390 100644
--- a/kvmd/plugins/ugpio/cmdret.py
+++ b/kvmd/plugins/ugpio/cmdret.py
@@ -71,9 +71,9 @@ class Plugin(BaseUserGpioDriver): # pylint: disable=too-many-instance-attribute
try:
proc = await aioproc.log_process(self.__cmd, logger=get_logger(0), prefix=str(self))
return (proc.returncode == 0)
- except Exception as err:
+ except Exception as ex:
get_logger(0).error("Can't run custom command [ %s ]: %s",
- tools.cmdfmt(self.__cmd), tools.efmt(err))
+ tools.cmdfmt(self.__cmd), tools.efmt(ex))
raise GpioDriverOfflineError(self)
async def write(self, pin: str, state: bool) -> None: