Skip to content

Commit

Permalink
Add another error code to parseStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
zedeus committed Mar 5, 2023
1 parent 725f601 commit 56420a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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"})
Expand Down

0 comments on commit 56420a2

Please sign in to comment.