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

Ability to ignore errors #11

Open
martinohanlon opened this issue Jun 4, 2018 · 2 comments
Open

Ability to ignore errors #11

martinohanlon opened this issue Jun 4, 2018 · 2 comments

Comments

@martinohanlon
Copy link
Owner

Errors being raised are not always desirable in scripted situations, an option to ignore errors is required.

Based on requests in #7 from @kiwi0fruit

@martinohanlon
Copy link
Owner Author

Add the ability to create ShortCutter in silent mode by adding silent to the constructor.

silent would suppress any exceptions being raised.

Also add --silent to shortcut application.

@kiwi0fruit
Copy link

kiwi0fruit commented Jun 4, 2018

I suggest explicit skip_errors=True/False (same but inverted is raise_errors) and error_log=None/sys.stderr/io.StringIO() where None means silent mode. This way skipping errors cannot be activated in two different ways (as you suggest).

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

No branches or pull requests

2 participants