mirror of
https://github.com/Flowseal/tg-ws-proxy.git
synced 2026-10-30 21:47:01 +03:00
[PR #7] [MERGED] Fix AttributeError when handling 302 redirects: initialize _ws_blacklist as set() #1
Reference in new issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/Flowseal/tg-ws-proxy/pull/7
Author: @Copilot
Created: 3/4/2026
Status: ✅ Merged
Merged: 3/4/2026
Merged by: @Flowseal
Base:
main← Head:copilot/fix-attribute-error-dict-add📝 Commits (2)
5228dbbInitial plan0401a4cfix: initialize _ws_blacklist as set() instead of {}📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
tg_ws_proxy.py(+1 -1)📄 Description
_ws_blacklistwas typed asSet[Tuple[int, bool]]but initialized with{}(adict), causingAttributeError: 'dict' object has no attribute 'add'on every 302 redirect.Change
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
[PR #7] [MERGED] Fix AttributeError when handling 302 redirects: initialize _ws_blacklist as set()to [PR #7] Fix AttributeError when handling 302 redirects: initialize _ws_blacklist as set()[PR #7] Fix AttributeError when handling 302 redirects: initialize _ws_blacklist as set()to [PR #7] [MERGED] Fix AttributeError when handling 302 redirects: initialize _ws_blacklist as set()