Skip to content

fix: replace 1 bare except clauses with except Exception#1881

Merged
SharonHart merged 2 commits intomicrosoft:mainfrom
haosenwang1018:fix/bare-excepts
Mar 3, 2026
Merged

fix: replace 1 bare except clauses with except Exception#1881
SharonHart merged 2 commits intomicrosoft:mainfrom
haosenwang1018:fix/bare-excepts

Conversation

@haosenwang1018
Copy link
Contributor

Replace bare except: clauses with except Exception: for PEP 8 compliance.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates a test in presidio-image-redactor to replace a bare except: with except Exception: to align with Python/PEP 8 guidance and avoid catching BaseException subclasses like KeyboardInterrupt/SystemExit.

Changes:

  • Replace one bare except: clause with except Exception: in a DICOM verify engine unit test.

@SharonHart SharonHart merged commit 91b903a into microsoft:main Mar 3, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants