1
0
Fork 0
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:
josdion 2020-04-14 09:40:37 +03:00
parent b42887c5fa
commit cd6c527d89
3 changed files with 6 additions and 4 deletions

View file

@ -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 []

View file

@ -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 []

View file

@ -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 []