mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-22 18:45:31 +00:00
Add another error code to parseStatus
This commit is contained in:
parent
725f601c9b
commit
56420a28bd
|
@ -301,7 +301,7 @@ proc parseGlobalObjects(js: JsonNode): GlobalObjects =
|
||||||
|
|
||||||
proc parseStatus*(js: JsonNode): Tweet =
|
proc parseStatus*(js: JsonNode): Tweet =
|
||||||
with e, js{"errors"}:
|
with e, js{"errors"}:
|
||||||
if e.getError in {tweetNotFound, tweetUnavailable, tweetCensored}:
|
if e.getError in {tweetNotFound, tweetUnavailable, tweetCensored, doesntExist}:
|
||||||
return
|
return
|
||||||
|
|
||||||
result = parseTweet(js, js{"card"})
|
result = parseTweet(js, js{"card"})
|
||||||
|
|
Loading…
Reference in a new issue