aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/markov.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/markov.py b/modules/markov.py
index 884a3d18..d88c2d37 100644
--- a/modules/markov.py
+++ b/modules/markov.py
@@ -158,6 +158,8 @@ class Module(ModuleManager.BaseModule):
break
third_word = self._choose(third_words)
+ if third_word == None:
+ break
words.append(third_word)
return " ".join(words)