summaryrefslogtreecommitdiffhomepage
path: root/custom_libs/subliminal_patch/providers/supersubtitles.py
diff options
context:
space:
mode:
Diffstat (limited to 'custom_libs/subliminal_patch/providers/supersubtitles.py')
-rw-r--r--custom_libs/subliminal_patch/providers/supersubtitles.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/custom_libs/subliminal_patch/providers/supersubtitles.py b/custom_libs/subliminal_patch/providers/supersubtitles.py
index c3ecb06a3..cc7752925 100644
--- a/custom_libs/subliminal_patch/providers/supersubtitles.py
+++ b/custom_libs/subliminal_patch/providers/supersubtitles.py
@@ -455,7 +455,13 @@ class SuperSubtitlesProvider(Provider, ProviderSubtitleArchiveMixin):
soup = ParserBeautifulSoup(r, ['lxml'])
tables = soup.find_all("table")
- tables = tables[0].find_all("tr")
+
+ try:
+ tables = tables[0].find_all("tr")
+ except IndexError:
+ logger.debug("No tables found for %s", url)
+ return []
+
i = 0
for table in tables: