Improve Exception Handling in File.download_*#4542
Merged
Bibo-Joshi merged 9 commits intomasterfrom Nov 3, 2024
Merged
Conversation
❌ 6 Tests Failed:
View the top 3 failed tests by shortest run time
To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard |
Member
Author
|
Lastest commit
|
Member
|
Well hindsight is is 20/20. |
This reverts commit 1e3b147.
Member
Author
|
New commits revert the workaround for |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Response to the test failures on master https://github.com/python-telegram-bot/python-telegram-bot/actions/runs/11607799025/job/32340491289
These are caused by Telegram failing to return a
file_pathin theget_fileresponse. I'm not sure why they stopped doing that. Further investigation might be necessary. I realized (maybe for the first time) thatfile_pathis actually documented to be optional.What this PR does is mostly soften the blow, i.e. provide understandable error handling.
This will not immediately fix the test suite. I'd like to wait a moment and see if the issue solves itself. If it does not, we'll have to adjust the other tests/mark them as xfail/report to telegram.
PS: see also tdlib/telegram-bot-api#658