diff --git a/monkey/infection_monkey/post_breach/actions/modify_shell_startup_files.py b/monkey/infection_monkey/post_breach/actions/modify_shell_startup_files.py index b6fd9e601..21d5d4372 100644 --- a/monkey/infection_monkey/post_breach/actions/modify_shell_startup_files.py +++ b/monkey/infection_monkey/post_breach/actions/modify_shell_startup_files.py @@ -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