Skip to content

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

Open
haosenwang1018 wants to merge 1 commit intoMiniMax-AI:mainfrom
haosenwang1018:fix/bare-excepts
Open

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

Conversation

@haosenwang1018
Copy link

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant