[PR #26] [CLOSED] Fix KeyError bug #66

Closed
opened 2026-02-15 23:16:29 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/stoatchat/python-client-sdk/pull/26
Author: @MutedByte
Created: 2/27/2022
Status: Closed

Base: masterHead: patch-1


📝 Commits (1)

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 revolt/websocket.py (+1 -0)

📄 Description

Traceback (most recent call last):
  File "C:\Program Files\Python310\lib\site-packages\revolt\websocket.py", line 92, in handle_event
    await func(payload)
  File "C:\Program Files\Python310\lib\site-packages\revolt\websocket.py", line 131, in handle_messageupdate
    if data["content"]:
KeyError: 'content'

fix
raises when message doesn't have content


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/stoatchat/python-client-sdk/pull/26 **Author:** [@MutedByte](https://github.com/MutedByte) **Created:** 2/27/2022 **Status:** ❌ Closed **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`a68cfee`](https://github.com/stoatchat/python-client-sdk/commit/a68cfee54e3697a2ac5068ad1216bc91a5008e57) Fix KeyError bug ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `revolt/websocket.py` (+1 -0) </details> ### 📄 Description ``` Traceback (most recent call last): File "C:\Program Files\Python310\lib\site-packages\revolt\websocket.py", line 92, in handle_event await func(payload) File "C:\Program Files\Python310\lib\site-packages\revolt\websocket.py", line 131, in handle_messageupdate if data["content"]: KeyError: 'content' ``` fix **raises when message doesn't have content** --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 23:16:29 -05:00
yindo closed this issue 2026-02-15 23:16:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stoatchat/python-client-sdk#66