Explorar el Código

Add another error code to parseStatus

Zed hace 3 años
padre
commit
56420a28bd
Se han modificado 1 ficheros con 1 adiciones y 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"})