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

Bare-except #3

Open
alanagoyal opened this issue Nov 19, 2018 · 1 comment
Open

Bare-except #3

alanagoyal opened this issue Nov 19, 2018 · 1 comment

Comments

@alanagoyal
Copy link

On line 72 of Article.py, there is a bare except statement with no exception type. In python, it is best to handle exceptions by giving them a specific exception type. This way, you are able to handle exceptions based on their specified exception-type.

@mattkronengold
Copy link

We also found this error. Another reason for not using a bare except is to appropriately throw an error that the developer did not expect to encounter.

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