mirror of
https://github.com/Glitchy-Sheep/boosty-downloader.git
synced 2026-10-14 21:33:23 +00:00
[GH-ISSUE #105] Bug: AttributeError: 'DownloadUnexpectedStatusError' object has no attribute 'message' on download failure #25
Labels
No labels
api-drift
bug
ci
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Glitchy-Sheep/boosty-downloader#25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Originally created by @WhiterFoxGit on GitHub (Jun 16, 2026).
Original GitHub issue: https://github.com/Glitchy-Sheep/boosty-downloader/issues/105
### Description
When a file download fails (for example, due to an expired OK.ru/Odnoklassniki video link returning
400 Bad Request), the application crashes with anAttributeErrorinstead of gracefully logging the error and continuing or retrying.This happens because the exception handler in
download_single_post.pytries to accesse.message, butDownloadUnexpectedStatusError(and some other exceptions) do not have amessageattribute in Python.### Environment
### Steps to Reproduce
boosty-downloader download --username <creator>on a large channel.### Traceback
### Suggested Fix
In boosty_downloader/src/application/use_cases/download_single_post.py, inside _safely_process_chunk(), please replace e.message with str(e) or use getattr(e, 'message', str(e)) to avoid crashing on logging.
For example,
Also, it might be beneficial to make failed downloads optional or skippable so that one failed CDN video doesn't abort the entire bulk download process.
@Glitchy-Sheep commented on GitHub (Jun 18, 2026):
Hi! Thanks a lot for the reporting, I'll try to fix that and some other little bugs maybe these weekends.