Closed
Description
There is the following lines of code in import_params.py
.
Generally "bare excepts" like this are discouraged:
- https://stackoverflow.com/questions/54948548/what-is-wrong-with-using-a-bare-except
- https://docs.astral.sh/ruff/rules/bare-except/
- https://pylint.pycqa.org/en/latest/user_guide/messages/warning/bare-except.html
There is even PEP760 which proposes disallowing them altogether.
https://peps.python.org/pep-0760/
I suggest we find out what all the branches are and treat them explicitly instead of a catch-all try except
.
Metadata
Metadata
Assignees
Labels
No labels