Replace `Exception` with more specific `FileNotFoundError` by hugovk · Pull Request #286 · python-humanize/humanize · GitHub
Skip to content

Replace Exception with more specific FileNotFoundError#286

Merged
hugovk merged 1 commit into
python-humanize:mainfrom
hugovk:exception
Dec 20, 2025
Merged

Replace Exception with more specific FileNotFoundError#286
hugovk merged 1 commit into
python-humanize:mainfrom
hugovk:exception

Conversation

@hugovk

@hugovk hugovk commented Dec 20, 2025

Copy link
Copy Markdown
Member

Exception is too broad.

No breaking change: FileNotFoundError is a subclass of OSError, which is a subclass of Exception.

@hugovk hugovk added the changelog: Fixed For any bug fixes label Dec 20, 2025
@codecov

codecov Bot commented Dec 20, 2025

Copy link
Copy Markdown

@hugovk hugovk merged commit 2ddb590 into python-humanize:main Dec 20, 2025
44 checks passed
@hugovk hugovk deleted the exception branch December 20, 2025 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog: Fixed For any bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant