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

Fix unspecified "except:" blocks #9

Merged
merged 1 commit into from
Sep 17, 2024
Merged

Fix unspecified "except:" blocks #9

merged 1 commit into from
Sep 17, 2024

Conversation

laarmen
Copy link
Contributor

@laarmen laarmen commented Jun 12, 2013

Those are bad since they catch every exception out there, including
KeyboardInterrupt and the like.

The first block is entirely removed as the two function call are not
supposed to raise anything given legit parameters.
The second should, according to the method description, only catch
KeyError to change them into AttributeError.

Those are bad since they catch every exception out there, including
KeyboardInterrupt and the like.

The first block is entirely removed as the two function call are not
supposed to raise anything given legit parameters.
The second should, according to the method description, only catch
KeyError to change them into AttributeError.
@dsc dsc merged commit c52f4c1 into dsc:master Sep 17, 2024
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

Successfully merging this pull request may close these issues.

2 participants