mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-13 11:36:34 +00:00
Don't discard tokens on length errors
This commit is contained in:
parent
5ccb24b008
commit
67142bea6a
1 changed files with 3 additions and 2 deletions
|
@ -65,6 +65,7 @@ proc fetch*(url: Uri; oldApi=false): Future[JsonNode] {.async.} =
|
||||||
release(token, true)
|
release(token, true)
|
||||||
raise rateLimitError()
|
raise rateLimitError()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
echo "error: ", e.msg, ", url: ", url
|
echo "error: ", e.msg, ", token: ", token[], ", url: ", url
|
||||||
release(token, true)
|
if "length" notin e.msg:
|
||||||
|
release(token, true)
|
||||||
raise rateLimitError()
|
raise rateLimitError()
|
||||||
|
|
Loading…
Reference in a new issue