Skip to content

Commit

Permalink
!refactor: Modify exception classes
Browse files Browse the repository at this point in the history
- Change: `InvalidSizeError` no longer inherits from `ValueError`.
- Change: Change inheritance order of `URLNotFoundError`.
  • Loading branch information
AnonymouX47 committed May 25, 2023
1 parent 8b1a878 commit 26ea969
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/term_image/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ class TermImageError(Exception):
"""Exception baseclass. Raised for generic errors."""


class URLNotFoundError(FileNotFoundError, TermImageError):
class URLNotFoundError(TermImageError, FileNotFoundError):
"""Raised for 404 errors."""


class InvalidSizeError(ValueError, TermImageError):
class InvalidSizeError(TermImageError):
"""Raised for invalid image sizes."""


Expand Down

0 comments on commit 26ea969

Please sign in to comment.