Skip to content

Commit

Permalink
[tumblr] prevent KeyErrors when using reblogs=same-blog
Browse files Browse the repository at this point in the history
(fixes #851)
  • Loading branch information
mikf committed Jun 25, 2020
1 parent 9da2bc6 commit 5e5be67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gallery_dl/extractor/tumblr.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def _skip_reblog(self, _):
return not self.reblogs

def _skip_reblog_same_blog(self, post):
return self.blog != post["reblogged_root_uuid"]
return self.blog != post.get("reblogged_root_uuid")


class TumblrUserExtractor(TumblrExtractor):
Expand Down

0 comments on commit 5e5be67

Please sign in to comment.