summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornico <nico.wellpott@uni-oldenburg.de>2018-10-02 00:31:43 +0200
committernico <nico.wellpott@uni-oldenburg.de>2018-10-02 00:31:43 +0200
commit83e5b1f0aa91628db28235b106341cb471d856df (patch)
tree606b1b91cb01571d0dc7144fcead0d1ca10249cb
parent294a728b0f3cf4c335923b7fbe6bd7e137a3fee3 (diff)
IndexError fix
* prevent IndexError when help is called
-rw-r--r--main.py1
1 files changed, 1 insertions, 0 deletions
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]