Fix bug with deleted galleries
This commit is contained in:
1 parent
8826fc5aa9
commit
77aaee96f3
2 files changed
+12
-1
No files matched your search
@@ -21,7 +21,7 @@ class Gallery(BaseDownloader):
|
||||
def find_resources(self, authenticator: Optional[SiteAuthenticator] = None) -> list[Resource]:
|
||||
try:
|
||||
image_urls = self._get_links(self.post.gallery_data['items'])
|
||||
except AttributeError:
|
||||
except (AttributeError, TypeError):
|
||||
try:
|
||||
image_urls = self._get_links(self.post.crosspost_parent_list[0]['gallery_data']['items'])
|
||||
except (AttributeError, IndexError, TypeError):
|
||||
|
||||
Reference in new issue
Block a user