Pārlūkot izejas kodu

Add another error code to parseStatus

Zed 3 gadi atpakaļ
vecāks
revīzija
56420a28bd
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/parser.nim

+ 1 - 1
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"})