Agent: Fix error handling in modify_shell_startup_files.py

This commit is contained in:
vakaris_zilius 2022-04-01 10:54:53 +00:00
parent df34991466
commit 7d3a679135
1 changed files with 2 additions and 2 deletions

View File

@ -84,6 +84,6 @@ class ModifyShellStartupFiles(PBA):
return output, True
except subprocess.CalledProcessError as err:
# Return error output of the command
return err.output.decode(), False
return str(err), False
except subprocess.TimeoutExpired as err:
return err.output.decode(), False
return str(err), False