From 35830abd9b0756df1ff1bae7e05ca7a540266880 Mon Sep 17 00:00:00 2001 From: Bazarr Date: Sat, 9 May 2020 23:03:34 +0100 Subject: [PATCH] don't raise an exception if compressed format is not supported --- libs/subliminal_patch/providers/legendasdivx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/subliminal_patch/providers/legendasdivx.py b/libs/subliminal_patch/providers/legendasdivx.py index 02ad95cce..0f80c75ef 100644 --- a/libs/subliminal_patch/providers/legendasdivx.py +++ b/libs/subliminal_patch/providers/legendasdivx.py @@ -400,7 +400,7 @@ class LegendasdivxProvider(Provider): logger.debug('Identified zip archive') archive = zipfile.ZipFile(archive_stream) else: - raise Exception('Unsupported compressed format') + raise ValueError('Unsupported compressed format') return archive