Skip to content

Fix AttributeError when reply_to is None (#150)#154

Open
Javiink wants to merge 1 commit intoknadh:masterfrom
Javiink:master
Open

Fix AttributeError when reply_to is None (#150)#154
Javiink wants to merge 1 commit intoknadh:masterfrom
Javiink:master

Conversation

@Javiink
Copy link
Copy Markdown

@Javiink Javiink commented Mar 9, 2025

Use getattr instead of an if conditional to get the m.reply_to.reply_to_msg_id attribute. This way if m.reply_to is None, the program doesn't break.

Fixes #150

@Javiink Javiink marked this pull request as ready for review March 9, 2025 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sync failes at specific message, AttributeError: 'MessageReplyStoryHeader' object has no attribute 'reply_to_msg_id'

1 participant