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 Try, Except, Pass issues in _metadata.py #66

Open
ashildskalnes opened this issue Jan 18, 2022 · 0 comments
Open

Fix Try, Except, Pass issues in _metadata.py #66

ashildskalnes opened this issue Jan 18, 2022 · 0 comments

Comments

@ashildskalnes
Copy link
Collaborator

Test results:

Issue: [B110:try_except_pass] Try, Except, Pass detected.
Severity: Low Confidence: High
Location: webviz_4d/_datainput/_metadata.py:260:4
More Info: https://bandit.readthedocs.io/en/latest/plugins/b110_try_except_pass.html
259 metadata = metadata_df[metadata_df["filename"] == surfacepath]
260 except:
261 pass
262


Issue: [B110:try_except_pass] Try, Except, Pass detected.
Severity: Low Confidence: High
Location: webviz_4d/_datainput/common.py:44:12
More Info: https://bandit.readthedocs.io/en/latest/plugins/b110_try_except_pass.html
43 value = defaults[key]
44 except:
45 pass
46 return value

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

1 participant