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()
|
||||
if token.tok.len == 0:
|
||||
release(token, true)
|
||||
raise rateLimitError()
|
||||
|
||||
let headers = genHeaders(token)
|
||||
|
|
Loading…
Reference in a new issue