mirror of
https://github.com/zedeus/nitter.git
synced 2025-03-04 10:01:24 +00:00
Skip null fetch errors
This commit is contained in:
parent
5edaea2359
commit
5265de101d
1 changed files with 5 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue