1
0
Fork 0

Catch additional error in Gallery

This commit is contained in:
Serene-Arc 2021-12-20 20:43:09 +10:00
parent a487320e81
commit af0a545c16
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class Gallery(BaseDownloader):
except (AttributeError, TypeError):
try:
image_urls = self._get_links(self.post.crosspost_parent_list[0]['gallery_data']['items'])
except (AttributeError, IndexError, TypeError):
except (AttributeError, IndexError, TypeError, KeyError):
logger.error(f'Could not find gallery data in submission {self.post.id}')
logger.exception('Gallery image find failure')
raise SiteDownloaderError('No images found in Reddit gallery')