mirror of
https://github.com/morpheus65535/bazarr
synced 2025-01-30 19:02:34 +00:00
FIx #928 - don't raise an exception in case of unsupported archive
This commit is contained in:
parent
b42887c5fa
commit
cd6c527d89
3 changed files with 6 additions and 4 deletions
|
@ -188,4 +188,5 @@ class SubsSabBzProvider(Provider):
|
|||
elif is_zipfile(archive_stream):
|
||||
return self.process_archive_subtitle_files( ZipFile(archive_stream), language, video, link )
|
||||
else:
|
||||
raise ValueError('Not a valid archive')
|
||||
logger.error('Ignore unsupported archive %r', request.headers)
|
||||
return []
|
||||
|
|
|
@ -196,4 +196,5 @@ class SubsUnacsProvider(Provider):
|
|||
elif is_zipfile(archive_stream):
|
||||
return self.process_archive_subtitle_files( ZipFile(archive_stream), language, video, link )
|
||||
else:
|
||||
raise ValueError('Not a valid archive')
|
||||
logger.error('Ignore unsupported archive %r', request.headers)
|
||||
return []
|
||||
|
|
|
@ -175,5 +175,5 @@ class YavkaNetProvider(Provider):
|
|||
elif is_zipfile(archive_stream):
|
||||
return self.process_archive_subtitle_files( ZipFile(archive_stream), language, video, link )
|
||||
else:
|
||||
raise ValueError('Not a valid archive')
|
||||
|
||||
logger.error('Ignore unsupported archive %r', request.headers)
|
||||
return []
|
||||
|
|
Loading…
Reference in a new issue