forked from p15670423/monkey
Agent: Fix error handling in modify_shell_startup_files.py
This commit is contained in:
parent
df34991466
commit
7d3a679135
|
@ -84,6 +84,6 @@ class ModifyShellStartupFiles(PBA):
|
||||||
return output, True
|
return output, True
|
||||||
except subprocess.CalledProcessError as err:
|
except subprocess.CalledProcessError as err:
|
||||||
# Return error output of the command
|
# Return error output of the command
|
||||||
return err.output.decode(), False
|
return str(err), False
|
||||||
except subprocess.TimeoutExpired as err:
|
except subprocess.TimeoutExpired as err:
|
||||||
return err.output.decode(), False
|
return str(err), False
|
||||||
|
|
Loading…
Reference in New Issue