Skip to content

refactor(bot): drop dead HTTP_methods module - #39

Merged
k0te1ch merged 2 commits into
mainfrom
refactor/drop-dead-http-methods
Aug 15, 2026
Merged

k0te1ch merged 2 commits into
mainfrom
refactor/drop-dead-http-methods

Conversation

@k0te1ch

@k0te1ch k0te1ch commented Aug 15, 2026

Copy link
Copy Markdown
Owner

app/bot/utils/HTTP_methods.py is unreachable: none of get_my_ip,
downloadFile or download_file is called anywhere, and the module name
doesn't appear outside the file itself. File downloads run through the aiogram
bot session and the dialog engine.

Worth noting what went with it — download_file caught asyncio.CancelledError
and turned it into a False return, which would have quietly broken task
cancellation had anyone started using it.

k0te1ch and others added 2 commits August 15, 2026 17:38
None of get_my_ip/downloadFile/download_file is referenced anywhere in the
repo — the module name doesn't appear outside the file itself. Downloads go
through the aiogram bot session and the dialog engine now.

It also held the only asyncio.CancelledError handler that swallowed
cancellation into a False return, plus four print() calls.
@k0te1ch
k0te1ch merged commit b3c8f16 into main Aug 15, 2026
9 of 10 checks passed
@k0te1ch
k0te1ch deleted the refactor/drop-dead-http-methods branch August 15, 2026 15:31
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.

1 participant