mirror of
https://github.com/ihabunek/toot.git
synced 2024-09-22 04:25:55 -04:00
Don't break if status doesn't have edited_at
This commit is contained in:
parent
ee98ce3746
commit
4d5ac3cc4e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user