diff --git a/bdfr/site_downloaders/gallery.py b/bdfr/site_downloaders/gallery.py index df161e5..62fec60 100644 --- a/bdfr/site_downloaders/gallery.py +++ b/bdfr/site_downloaders/gallery.py @@ -24,7 +24,7 @@ class Gallery(BaseDownloader): except AttributeError: try: image_urls = self._get_links(self.post.crosspost_parent_list[0]['gallery_data']['items']) - except (AttributeError, IndexError): + except (AttributeError, IndexError, TypeError): 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')