From 56420a28bda8e8cbcef9c65e31cdb4d71c29bd15 Mon Sep 17 00:00:00 2001 From: Zed Date: Mon, 6 Mar 2023 00:22:27 +0100 Subject: [PATCH] Add another error code to parseStatus --- src/parser.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.nim b/src/parser.nim index 977d579..daf7aea 100644 --- a/src/parser.nim +++ b/src/parser.nim @@ -301,7 +301,7 @@ proc parseGlobalObjects(js: JsonNode): GlobalObjects = proc parseStatus*(js: JsonNode): Tweet = with e, js{"errors"}: - if e.getError in {tweetNotFound, tweetUnavailable, tweetCensored}: + if e.getError in {tweetNotFound, tweetUnavailable, tweetCensored, doesntExist}: return result = parseTweet(js, js{"card"})