mirror of https://github.com/zedeus/nitter
Merge f91f7b92c8
into b62d73dbd3
This commit is contained in:
commit
324db041de
|
@ -67,6 +67,9 @@ template fetchImpl(result, fetchBody) {.dirty.} =
|
||||||
|
|
||||||
getContent()
|
getContent()
|
||||||
|
|
||||||
|
if resp.status == $Http429:
|
||||||
|
raise rateLimitError()
|
||||||
|
|
||||||
if resp.status == $Http503:
|
if resp.status == $Http503:
|
||||||
badClient = true
|
badClient = true
|
||||||
raise newException(BadClientError, "Bad client")
|
raise newException(BadClientError, "Bad client")
|
||||||
|
|
Loading…
Reference in New Issue