From 83e5b1f0aa91628db28235b106341cb471d856df Mon Sep 17 00:00:00 2001 From: nico Date: Tue, 2 Oct 2018 00:31:43 +0200 Subject: [PATCH] IndexError fix * prevent IndexError when help is called --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 7445d9a..13cfb4c 100644 --- a/main.py +++ b/main.py @@ -120,6 +120,7 @@ class QueryBot(slixmpp.ClientXMPP): if keyword == '!help': reply.append(StaticAnswers().gen_help()) + continue try: target = words[index + 1]