Skip to content

Python: fix: replace 2 bare except clauses with except Exception#13592

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

Python: fix: replace 2 bare except clauses with except Exception#13592
haosenwang1018 wants to merge 1 commit intomicrosoft:mainfrom
haosenwang1018:fix/bare-excepts

Conversation

@haosenwang1018
Copy link

What

Replace 2 bare except: clauses with except Exception:.

Why

Bare except: catches BaseException, including KeyboardInterrupt and SystemExit, which can prevent clean process shutdown and mask critical errors.

Bare `except:` catches BaseException including KeyboardInterrupt and
SystemExit. Replaced 2 instances with `except Exception:`.
@haosenwang1018 haosenwang1018 requested a review from a team as a code owner February 25, 2026 14:04
@moonbox3 moonbox3 added the python Pull requests for the Python Semantic Kernel label Feb 25, 2026
@github-actions github-actions bot changed the title fix: replace 2 bare except clauses with except Exception Python: fix: replace 2 bare except clauses with except Exception Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Pull requests for the Python Semantic Kernel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants