Skip to content

Fix bare except clause in manim/utils/rate_functions.py#4891

Merged
chopan050 merged 1 commit into
ManimCommunity:mainfrom
koteshyelamati:main
Jul 20, 2026
Merged

Fix bare except clause in manim/utils/rate_functions.py#4891
chopan050 merged 1 commit into
ManimCommunity:mainfrom
koteshyelamati:main

Conversation

@koteshyelamati

Copy link
Copy Markdown
Contributor

Replace bare except: with except Exception: in manim/utils/rate_functions.py.

The bare except: is used to silently skip rate functions that aren't working (e.g. not_quite_there, squish_rate_func). Using except Exception: preserves that behavior while avoiding accidentally swallowing SystemExit and KeyboardInterrupt. The existing comment is preserved.

Specify exception type in the try-except block for clarity.

@chopan050 chopan050 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! Thanks!

@chopan050
chopan050 merged commit 151f705 into ManimCommunity:main Jul 20, 2026
17 checks passed
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