Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 620b292

Browse files
committedJan 27, 2025·
[twitch-chat-download] handle deleted accounts
1 parent 9e78443 commit 620b292

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed
 

‎markut.go

+7-2
Original file line numberDiff line numberDiff line change
@@ -1174,8 +1174,13 @@ var Subcommands = map[string]Subcommand{
11741174
cursor = edge
11751175
cursor = cursor.(Object)["node"]
11761176
cursor = cursor.(Object)["commenter"]
1177-
cursor = cursor.(Object)["login"]
1178-
fmt.Printf("%s,", cursor.(string))
1177+
if cursor != nil {
1178+
cursor = cursor.(Object)["login"]
1179+
fmt.Printf("%s,", cursor.(string))
1180+
} else {
1181+
// Apparent this may happen if the account got deleted after the stream
1182+
fmt.Printf("<DELETED>,")
1183+
}
11791184

11801185
// cursor = edge
11811186
// cursor = cursor.(Object)["node"]

0 commit comments

Comments
 (0)
Please sign in to comment.