From dcdf0a3497e1855e0efa7446e3fbddf022785ab7 Mon Sep 17 00:00:00 2001 From: Xch1 Date: Sat, 17 Aug 2024 17:09:45 +0800 Subject: [PATCH] fix message error --- dags/ods/fb_post_insights/udfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dags/ods/fb_post_insights/udfs.py b/dags/ods/fb_post_insights/udfs.py index d4f8b88..651b83b 100644 --- a/dags/ods/fb_post_insights/udfs.py +++ b/dags/ods/fb_post_insights/udfs.py @@ -53,7 +53,7 @@ def save_fb_posts_and_insights() -> None: { "id": post["id"], "created_at": convert_fb_time(post["created_time"]), - "message": post["message"], + "message": post.get("message", "No message found"), } for post in new_posts ]