Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python scripting lib: fix run_command(error='status') not returning 0 #1839

Merged
merged 1 commit into from
Sep 5, 2021

Conversation

petrasovaa
Copy link
Contributor

With this fix run_command when called with errors='status' will always return the return code (even if completed successfully).

Also fixes write_command error handling behavior.
This should address #339 and replaces #333.

Also fixes write_command error handling behavior.
@petrasovaa petrasovaa added the bug Something isn't working label Sep 2, 2021
@petrasovaa petrasovaa added this to the 8.0.0 milestone Sep 2, 2021
@petrasovaa
Copy link
Contributor Author

test in binder

Copy link
Member

@wenzeslaus wenzeslaus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me and the code looks good!

@petrasovaa petrasovaa merged commit 29e1cb0 into OSGeo:main Sep 5, 2021
@petrasovaa petrasovaa deleted the fix-script-command-returncode branch September 5, 2021 02:42
lindakarlovska pushed a commit to lindakarlovska/grass that referenced this pull request Sep 6, 2021
…OSGeo#1839)

With this fix run_command when called with errors='status' will always return the return code (even if completed successfully).
Also fixes write_command error handling behavior.
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Oct 26, 2022
…OSGeo#1839)

With this fix run_command when called with errors='status' will always return the return code (even if completed successfully).
Also fixes write_command error handling behavior.
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Feb 17, 2023
…OSGeo#1839)

With this fix run_command when called with errors='status' will always return the return code (even if completed successfully).
Also fixes write_command error handling behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants