★ wanayoo — archive 1999 https://github.com/python-provy/provy/pull/140Nouvelle recherche | Portail wanayoo
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

Added ability to specify return codes. #140

Open
wants to merge 1 commit into
base: master
from

Conversation

@jbzdak
Copy link
Contributor

@jbzdak jbzdak commented Jan 2, 2014

When getting returncode other than 0 fabric raises SystemExit error by default, which is very unformtuate, since it is one exception you really shouldn't catch in Python.

You can of course use fabric.api.settings(warn_only=True, but you have to know of its existence, which can be hard. And we force user to use api other than provy api. I added a small feature that allows user to specify return codes that are considered as succesfull execurion, and if process return other return code I raise sane CommandExecutionError).

Let me know if any further changes are neccessary.

@jbzdak
Copy link
Contributor Author

@jbzdak jbzdak commented Feb 20, 2014

This requires some more work, it breaks some existing functionality.

For now it overrrides any warn_only setting set by any other code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.