diff --git a/.gitignore b/.gitignore index 7b8cac2..b8a7f3f 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,8 @@ __pycache__/ !*.defaults.json venv/ .venv/ + +bin +lib +lib64 +pyenv.cfg diff --git a/fetch_posts.py b/fetch_posts.py index 48859d8..d5eaa2f 100755 --- a/fetch_posts.py +++ b/fetch_posts.py @@ -128,6 +128,11 @@ class PostFetcher: obj = activity['object'] + try: + obj['summary'] + except KeyError: + obj['summary'] = None + await self._db.execute( """ INSERT INTO posts (post_id, summary, content, published_at)