[tumblr] prevent KeyErrors when using reblogs=same-blog

(fixes #851)
This commit is contained in:
Mike Fährmann
2020-06-24 21:29:18 +02:00
parent 9da2bc67f8
commit 5e5be67c26

View File

@@ -194,7 +194,7 @@ class TumblrExtractor(Extractor):
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):