Explorar o código

Add another error code to parseStatus

Zed %!s(int64=3) %!d(string=hai) anos
pai
achega
56420a28bd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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"})