mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-13 11:36:34 +00:00
Don't release empty tokens
This commit is contained in:
parent
67142bea6a
commit
4a38b270af
1 changed files with 0 additions and 1 deletions
|
@ -37,7 +37,6 @@ proc fetch*(url: Uri; oldApi=false): Future[JsonNode] {.async.} =
|
||||||
|
|
||||||
var token = await getToken()
|
var token = await getToken()
|
||||||
if token.tok.len == 0:
|
if token.tok.len == 0:
|
||||||
release(token, true)
|
|
||||||
raise rateLimitError()
|
raise rateLimitError()
|
||||||
|
|
||||||
let headers = genHeaders(token)
|
let headers = genHeaders(token)
|
||||||
|
|
Loading…
Reference in a new issue