1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-06-02 06:01:12 +00:00

Don't break if status doesn't have edited_at

This commit is contained in:
Ivan Habunek 2024-03-09 10:13:34 +01:00
parent ee98ce3746
commit 4d5ac3cc4e
No known key found for this signature in database
GPG Key ID: F5F0623FF5EBCB3D

View File

@ -53,7 +53,7 @@ class Status:
self.id = self.data["id"]
self.account = self._get_account()
self.created_at = parse_datetime(data["created_at"])
if data["edited_at"]:
if data.get("edited_at"):
self.edited_at = parse_datetime(data["edited_at"])
else:
self.edited_at = None