mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 05:56:37 +00:00
Add NoThumbnailException
This commit is contained in:
parent
9ae0fecb7d
commit
f6b20c03e3
@ -1,3 +1,6 @@
|
|||||||
|
from django.http import Http404
|
||||||
|
|
||||||
|
|
||||||
class NoMediaException(Exception):
|
class NoMediaException(Exception):
|
||||||
'''
|
'''
|
||||||
Raised when a source returns no media to be indexed. Could be an invalid
|
Raised when a source returns no media to be indexed. Could be an invalid
|
||||||
@ -22,6 +25,13 @@ class NoMetadataException(Exception):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class NoThumbnailException(Http404):
|
||||||
|
'''
|
||||||
|
Raised when a thumbnail was not found at the remote URL.
|
||||||
|
'''
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class DownloadFailedException(Exception):
|
class DownloadFailedException(Exception):
|
||||||
'''
|
'''
|
||||||
Raised when a downloaded media file is expected to be present, but doesn't
|
Raised when a downloaded media file is expected to be present, but doesn't
|
||||||
|
Loading…
Reference in New Issue
Block a user