Skip to content

fix: replace bare except with except Exception#351

Open
KeloYuan wants to merge 1 commit into
goldsmith:masterfrom
KeloYuan:fix/bare-except-improvements
Open

fix: replace bare except with except Exception#351
KeloYuan wants to merge 1 commit into
goldsmith:masterfrom
KeloYuan:fix/bare-except-improvements

Conversation

@KeloYuan

@KeloYuan KeloYuan commented May 8, 2026

Copy link
Copy Markdown

Summary

Replaces bare except: with except Exception: in wikipedia/wikipedia.py (line 315).

Why

Bare except: catches SystemExit and KeyboardInterrupt, which can mask Ctrl+C handling and make debugging harder.

Bare except: catches SystemExit and KeyboardInterrupt.
Copilot AI review requested due to automatic review settings May 8, 2026 13:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates WikipediaPage.__eq__ to avoid a bare except: clause, ensuring signals like KeyboardInterrupt/SystemExit are not inadvertently swallowed during equality checks.

Changes:

  • Replaced except: with except Exception: in WikipediaPage.__eq__.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants