Skip to content

fix: replace bare except with except Exception in sphinx autodoc typehints script - #2263

Open
TrueFurina wants to merge 1 commit into
tortoise:developfrom
TrueFurina:develop
Open

fix: replace bare except with except Exception in sphinx autodoc typehints script#2263
TrueFurina wants to merge 1 commit into
tortoise:developfrom
TrueFurina:develop

Conversation

@TrueFurina

Copy link
Copy Markdown

Replace 3 bare except: clauses in docs/sphinx_autodoc_typehints.py with except Exception: — same intended behavior (forward-reference evaluation fallbacks and warning logging), but KeyboardInterrupt/SystemExit are no longer intercepted first. Verified: python -m py_compile passes.

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