summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsand <daniel@spatof.org>2013-05-22 10:48:18 (GMT)
committer sand <daniel@spatof.org>2013-05-22 10:48:18 (GMT)
commit3656dc6a5737da7863a7ee236c93361cf545c960 (patch)
treece26c400a421816823584f97dc5984657e70d2d7
parent69962d19d0ef1a1a0f6abc5088d68023088c0660 (diff)
minor fix per markov
-rw-r--r--pinolo/plugins/markov.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pinolo/plugins/markov.py b/pinolo/plugins/markov.py
index 2dae7ee..d7c8d88 100644
--- a/pinolo/plugins/markov.py
+++ b/pinolo/plugins/markov.py
@@ -132,6 +132,8 @@ class MarkovBrain(object):
if seed:
starter = self.start_from_seed(seed)
+ else:
+ starter = None
if starter is None:
starter = random.choice(self.tokens.keys())