mirror of
https://github.com/zedeus/nitter
synced 2026-09-25 23:09:20 +00:00
Merge f91f7b92c8 into 376f14908e
This commit is contained in:
commit
f148895334
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