mirror of
https://github.com/zedeus/nitter.git
synced 2025-12-06 03:55:36 -05:00
Skip null fetch errors
This commit is contained in:
@@ -126,6 +126,7 @@ proc fetch*(url: Uri; api: Api): Future[JsonNode] {.async.} =
|
||||
result = newJNull()
|
||||
|
||||
let error = result.getError
|
||||
if error != null:
|
||||
echo "Fetch error, API: ", api, ", error: ", error
|
||||
if error in {expiredToken, badToken, locked}:
|
||||
invalidate(account)
|
||||
|
||||
Reference in New Issue
Block a user