Add NoThumbnailException

This commit is contained in:
tcely 2025-05-02 15:36:00 -04:00 committed by GitHub
parent 9ae0fecb7d
commit f6b20c03e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,3 +1,6 @@
from django.http import Http404
class NoMediaException(Exception):
'''
Raised when a source returns no media to be indexed. Could be an invalid
@ -22,6 +25,13 @@ class NoMetadataException(Exception):
pass
class NoThumbnailException(Http404):
'''
Raised when a thumbnail was not found at the remote URL.
'''
pass
class DownloadFailedException(Exception):
'''
Raised when a downloaded media file is expected to be present, but doesn't