From 7bdd2ad202d1e77e2811d62f955c389ceab4c5f5 Mon Sep 17 00:00:00 2001 From: Sergey Dmitrenko Date: Fri, 20 Dec 2024 15:02:25 +0300 Subject: [PATCH] Fixed return of parent_id in Message wrapper --- mmpy_bot/wrappers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmpy_bot/wrappers.py b/mmpy_bot/wrappers.py index 58a459ee..e24fad62 100644 --- a/mmpy_bot/wrappers.py +++ b/mmpy_bot/wrappers.py @@ -52,7 +52,7 @@ def mentions(self): @cached_property def parent_id(self): - return self.body["data"]["post"]["parent_id"] + return self.body["data"]["post"].get("parent_id", "").strip() @cached_property def reply_id(self):