Skip to content

fix: replace deprecated bare except#3

Open
fazalpsinfo-cmyk wants to merge 1 commit into
opendns:masterfrom
fazalpsinfo-cmyk:fix/bare-except
Open

fix: replace deprecated bare except#3
fazalpsinfo-cmyk wants to merge 1 commit into
opendns:masterfrom
fazalpsinfo-cmyk:fix/bare-except

Conversation

@fazalpsinfo-cmyk

Copy link
Copy Markdown

Thank you for reviewing this fix!

Change: Replaced bare except: with except Exception: to avoid catching SystemExit, KeyboardInterrupt, and GeneratorExit.

Bare except clauses catch all exceptions including SystemExit and KeyboardInterrupt, which can make debugging difficult and cause unexpected behavior during shutdown. Replacing with except Exception: follows Python best practices.

If you find this useful, consider buying me a coffee!


This is an automated contribution submitted on behalf of the open-source community.

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.

1 participant