Skip to content

Handle missing ebooks explicitly #4

Description

@ioreshnikov

Sometimes e-book goes missing from the website. The download link is still there, but instead of a zip archive we find there an HTML page saying that the book has been removed. The bot doesn't handle this situation explicitly and instead treats the downloaded page as a ZIP archive and fails, which looks like a generic runtime error to the user.

I should handle this situation explicitly with a clear message, so it's apparent what's going on without me going all the way to an EC2 instance to dig in the logs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions