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

triggers BareExcept warnings en masse #365

Open
tersec opened this issue Feb 24, 2023 · 0 comments
Open

triggers BareExcept warnings en masse #365

tersec opened this issue Feb 24, 2023 · 0 comments

Comments

@tersec
Copy link
Contributor

tersec commented Feb 24, 2023

status-im/nimbus-eth2#4661

nimbus-eth2/vendor/nim-chronos/chronos/asyncfutures2.nim(389, 3) Warning: catch a more precise Exception deriving from CatchableError or Defect. [BareExcept]

except Exception as exc:
if exc of Defect:
raise (ref Defect)(exc)
fut.fail((ref ValueError)(msg: exc.msg, parent: exc))

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