Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: replace 8 bare excepts with except Exception in slack-gif-creator#64

Open
haosenwang1018 wants to merge 1 commit into
MiniMax-AI:main from
haosenwang1018:fix/bare-excepts
Open

fix: replace 8 bare excepts with except Exception in slack-gif-creator #64
haosenwang1018 wants to merge 1 commit into
MiniMax-AI:main from
haosenwang1018:fix/bare-excepts

Conversation

@haosenwang1018

@haosenwang1018 haosenwang1018 commented Feb 25, 2026

Copy link
Copy Markdown

Replace bare except: with except Exception: in 3 files (8 sites).

Files: frame_composer.py (6 sites), typography.py (1), validators.py (1)

Why: Bare except: catches BaseException including KeyboardInterrupt and SystemExit, preventing clean shutdown. except Exception: preserves all fallback behavior.

Files: frame_composer.py (6), typography.py (1), validators.py (1)
Bare except catches BaseException including KeyboardInterrupt/SystemExit.
Using except Exception preserves fallback behavior while allowing system
exceptions to propagate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /