mirror of
https://github.com/zedeus/nitter
synced 2026-10-26 12:53:23 +00:00
Merge f91f7b92c8 into 145ca9eb68
This commit is contained in:
commit
1b212c2dd0
1 changed files with 3 additions and 0 deletions
|
|
@ -145,6 +145,9 @@ template fetchImpl(result, fetchBody) {.dirty.} =
|
|||
|
||||
getContent()
|
||||
|
||||
if resp.status == $Http429:
|
||||
raise rateLimitError()
|
||||
|
||||
if resp.status == $Http503:
|
||||
badClient = true
|
||||
raise newException(BadClientError, "Bad client")
|
||||
|
|
|
|||
Loading…
Reference in a new issue