fix: Don't crash on error messages
This commit is contained in:
parent
bcb7200ebf
commit
bd34c6d350
1 changed files with 2 additions and 1 deletions
3
main.go
3
main.go
|
@ -36,8 +36,9 @@ func main() {
|
|||
if len(cells) == 0 {
|
||||
return
|
||||
}
|
||||
if len(cells) == 3 {
|
||||
if len(cells) < 5 {
|
||||
reply = "Not found :("
|
||||
return
|
||||
}
|
||||
reply += cells[1].Text() + "\n" + cells[0].Text() + "\n\n"
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue