SuperSubtitles: handle KeyError for movie searches

This commit is contained in:
Vitiko 2024-07-26 19:16:37 -04:00
parent 8fe8eaf7da
commit 4a34186985

View file

@ -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: