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

Replace bare except statements #669

Open
ClaraBuettner opened this issue Sep 26, 2023 · 0 comments
Open

Replace bare except statements #669

ClaraBuettner opened this issue Sep 26, 2023 · 0 comments
Assignees

Comments

@ClaraBuettner
Copy link
Contributor

ClaraBuettner commented Sep 26, 2023

flake8 tests for "Can not use bare except" are currently excluded. I tried to fix those problems, but since I didn't know the error that could show up for all occurrences, I was not able to fix all of them. It would be good if I could get some help from the others who created those statements.

These statements occur e.g. here:

try:
cf = fixed_capacity_fac[gen["carrier"]]
except:
print(gen)
cf = 1

You can easily find them when running flake8 .
When these problems are solved, we can turn on the flake8 changes for this in noxfile.py.

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