mirror of
https://github.com/stoatchat/python-client-sdk.git
synced 2026-07-21 10:05:22 -04:00
[PR #65] [MERGED] Fix wrong type being passed to params dict for remove_reaction #84
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/stoatchat/python-client-sdk/pull/65
Author: @Solarphlare
Created: 7/26/2023
Status: ✅ Merged
Merged: 7/27/2023
Merged by: @Zomatree
Base:
master← Head:master📝 Commits (1)
1217fb3Fix wrong query param types for remove_reaction📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
revolt/http.py(+1 -1)📄 Description
aiohttp's
requestmethod can only accept a dict with values of type str, float or int for the request's parameters. However, a boolean value is added to the parameters dictionary at this line:https://github.com/revoltchat/revolt.py/blob/7ae2a566109fbf0a0e106462a7308798df59b2fe/revolt/http.py#L407
Because of this, aiottp throws the following error:
This PR resolves the issue by converting the bool to either
"true"or"false"before making the request.Please make sure to check the following tasks before opening and submitting a PR
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.