mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 14:49:32 +00:00
Merge f91f7b92c8 into e4aefbc210
This commit is contained in:
commit
b4cfdc7997
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