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

Catch Exception instead of using bare except #357

Merged
merged 1 commit into from
Oct 23, 2017

Conversation

brandur
Copy link
Contributor

@brandur brandur commented Oct 23, 2017

This seems to be new, but flake8 is complaining that we're using a bare
except and it's breaking the build:

flake8 stripe
stripe/webhook.py:48:9: E722 do not use bare except'

Here we change over to catch the parent Exception class instead.

r? @ob-stripe

This seems to be new, but flake8 is complaining that we're using a bare
except and it's breaking the build:

    flake8 stripe
    stripe/webhook.py:48:9: E722 do not use bare except'

Here we change over to catch the parent `Exception` class instead.
@ob-stripe
Copy link
Contributor

Wonder how this passed before, but lgtm!

@brandur-stripe
Copy link
Contributor

Wonder how this passed before, but lgtm!

Yeah seriously! All I can think of is that the default flake8 behavior changed.

Thanks!

@brandur-stripe brandur-stripe merged commit 9c88ba3 into master Oct 23, 2017
@brandur-stripe brandur-stripe deleted the brandur-remove-bare-except branch October 23, 2017 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants