mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-30 17:41:54 +08:00
removed unnecessary proc.returncode
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user