Skip to content

Commit

Permalink
[exhentai] improve error message when temporarily banned (#5845)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Jul 12, 2024
1 parent f7383a5 commit 668219b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gallery_dl/extractor/exhentai.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,9 @@ def _validate_response(self, response):
self.original = False
return self.data["_url_1280"]

if " temporarily banned " in page:
raise exception.AuthorizationError("Temporarily Banned")

self._report_limits()
return True

Expand Down

0 comments on commit 668219b

Please sign in to comment.