Skip to content

Commit

Permalink
Fixed return of parent_id in Message wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Dmitrenko authored and attzonko committed Dec 21, 2024
1 parent 04bf419 commit 7bdd2ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmpy_bot/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 7bdd2ad

Please sign in to comment.