From 7c90a350e939e576e9cc65017280bd3639110b7e Mon Sep 17 00:00:00 2001 From: Bhupesh-V Date: Thu, 15 Aug 2024 16:17:47 +0530 Subject: [PATCH] fix empty user --- community-threads/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/community-threads/main.py b/community-threads/main.py index 53cecc8..c23759a 100644 --- a/community-threads/main.py +++ b/community-threads/main.py @@ -73,7 +73,7 @@ def get_post_data(reddit, post_url): submission.created_utc ).isoformat(), "flair_text": submission.link_flair_text, - "author": submission.author.name, + "author": submission.author.name if submission.author else "", } return post