[tumblr] catch exception for 'hash' extraction (fixes #129)

pull/133/head
Mike Fährmann 6 years ago
parent 40e30694f3
commit 95636418ad
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -158,7 +158,10 @@ class TumblrExtractor(Extractor):
post["num"] += 1
parts = post["name"].split("_")
post["hash"] = parts[1] if parts[1] != "inline" else parts[2]
try:
post["hash"] = parts[1] if parts[1] != "inline" else parts[2]
except IndexError:
post["hash"] = ""
return Message.Url, url, post

Loading…
Cancel
Save