Skip null fetch errors

This commit is contained in:
Zed 2025-02-05 03:49:17 +01:00
parent 5edaea2359
commit 5265de101d

View file

@ -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)