Преглед изворни кода

Add another error code to parseStatus

Zed пре 3 година
родитељ
комит
56420a28bd
1 измењених фајлова са 1 додато и 1 уклоњено
  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"})