Skip to content

Commit 7bdd2ad

Browse files
Sergey Dmitrenkoattzonko
authored andcommitted
Fixed return of parent_id in Message wrapper
1 parent 04bf419 commit 7bdd2ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mmpy_bot/wrappers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def mentions(self):
5252

5353
@cached_property
5454
def parent_id(self):
55-
return self.body["data"]["post"]["parent_id"]
55+
return self.body["data"]["post"].get("parent_id", "").strip()
5656

5757
@cached_property
5858
def reply_id(self):

0 commit comments

Comments
 (0)