[kemonoparty] fix crash on posts with missing datetime info (#5422)

pull/5479/head
Mike Fährmann 6 months ago
parent ef8f02c3d9
commit 86a97d8e27
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -82,7 +82,7 @@ class KemonopartyExtractor(Extractor):
self.root, post["service"], post["user"], post["id"])
post["_http_headers"] = headers
post["date"] = self._parse_datetime(
post["published"] or post["added"])
post.get("published") or post.get("added") or "")
if username:
post["username"] = username

Loading…
Cancel
Save