diff --git a/.gitignore b/.gitignore index 6f9578f..7e7acb0 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ config-*.ini venv # :3 -tmp.py +tmp*.py +test-data diff --git a/mastoposter/types.py b/mastoposter/types.py index 73376e9..ecffd2f 100644 --- a/mastoposter/types.py +++ b/mastoposter/types.py @@ -89,7 +89,7 @@ class Account: header_static=data["header_static"], locked=data["locked"], emojis=list(map(Emoji.from_dict, data["emojis"])), - discoverable=data["discoverable"], + discoverable=data.get("discoverable", False), created_at=_date(data["created_at"]), last_status_at=_date(data["last_status_at"]), statuses_count=data["statuses_count"],