소스 검색

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