Skip to content

fix(Execute Shell Command): Fix exception return type inconsistency and print formatting (fixes #463) - #464

Open
Prayas340 wants to merge 2 commits into
ndleah:mainfrom
Prayas340:fix-execute-shell-command-bug
Open

fix(Execute Shell Command): Fix exception return type inconsistency and print formatting (fixes #463)#464
Prayas340 wants to merge 2 commits into
ndleah:mainfrom
Prayas340:fix-execute-shell-command-bug

Conversation

@Prayas340

Copy link
Copy Markdown

Fixes #463

Changes Proposed

  • Execute Shell Command/execute_shell_command.py: Fixed exception return value to (b'', 105) so tuple unpacking result, status works consistently without crashing with TypeError.
  • Execute Shell Command/execute_shell_command.py: Fixed string formatting in print statement using f-string.
  • Execute Shell Command/execute_shell_command.py: Decoded err bytes cleanly before output.
  • Execute Shell Command/execute_shell_command_test.py: Added test case test_shell_command_non_zero_status for non-zero status / failing shell commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Execute Shell Command] Fix return type inconsistency and print formatting bug

1 participant