Skip to content

Commit

Permalink
Remove unused MediaIdNotFoundException
Browse files Browse the repository at this point in the history
  • Loading branch information
movchan74 committed Feb 9, 2024
1 parent 2519231 commit 8eca516
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions aana/exceptions/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,28 +155,6 @@ def __reduce__(self):
return (self.__class__, (self.prompt_len, self.max_len))


class MediaIdNotFoundException(BaseException):
"""Exception raised when a media ID is not found.
Attributes:
media_id (MediaId): the media ID
"""

def __init__(self, media_id: MediaId):
"""Initialize the exception.
Args:
media_id (MediaId): the media ID
"""
super().__init__(media_id=media_id)
self.media_id = media_id
self.http_status_code = 404

def __reduce__(self):
"""Used for pickling."""
return (self.__class__, (self.media_id,))


class EndpointNotFoundException(BaseException):
"""Exception raised when an endpoint is not found.
Expand Down

0 comments on commit 8eca516

Please sign in to comment.