diff options
author | Maxim Devaev <[email protected]> | 2022-04-12 12:45:27 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-04-12 12:45:27 +0300 |
commit | 04e0ad213aa73745f988005abb3dcebee2c10ae7 (patch) | |
tree | b1f31ac887bb42b83df68ffe1b4644260d16c6c6 /kvmd/plugins/ugpio/cmd.py | |
parent | 047d8ad760249858034d13a523b99af1bc9b6c1d (diff) |
removed unnecessary proc.returncode
Diffstat (limited to 'kvmd/plugins/ugpio/cmd.py')
-rw-r--r-- | kvmd/plugins/ugpio/cmd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/plugins/ugpio/cmd.py b/kvmd/plugins/ugpio/cmd.py index 3dfaa4b3..72f7ee8e 100644 --- a/kvmd/plugins/ugpio/cmd.py +++ b/kvmd/plugins/ugpio/cmd.py @@ -81,7 +81,7 @@ class Plugin(BaseUserGpioDriver): # pylint: disable=too-many-instance-attribute try: proc = await aioproc.log_process(self.__cmd, logger=get_logger(0), prefix=str(self)) if proc.returncode != 0: - raise RuntimeError(f"Custom command error: pid={proc.pid}; retcode={proc.returncode}") + raise RuntimeError(f"Custom command error: retcode={proc.returncode}") except Exception as err: get_logger(0).error("Can't run custom command %s: %s", self.__cmd, tools.efmt(err)) raise GpioDriverOfflineError(self) |