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

Functions for error handling #31

Merged
merged 1 commit into from Jun 26, 2019
Merged

Conversation

matyama
Copy link
Contributor

@matyama matyama commented Jun 24, 2019

Description

  • More try_except derivatives for error handling:
    • Adds functions attempt and try_apply that fallback None
    • Adds decorator @silenced(error) that makes decorated function return None on error

Test plan

Passing release check

@matyama matyama added enhancement New feature or request suggestion Suggestion for new feature labels Jun 24, 2019
@matyama matyama self-assigned this Jun 24, 2019
@matyama matyama merged commit efa31df into master Jun 26, 2019
@matyama matyama deleted the functions-for-error-handling branch June 26, 2019 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request suggestion Suggestion for new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants