diff --git a/BUGS b/BUGS index 0d300a9..61d6087 100644 --- a/BUGS +++ b/BUGS @@ -21,3 +21,19 @@ dr.botzo --- BUGS File "/home/bss/bin/dr.botzo/dr.botzo/modules/Twitter.py", line 349, in _check_self_timeline new_since_id = self._get_latest_tweet_id(tweets, new_since_id) UnboundLocalError: local variable 'new_since_id' referenced before assignment + * Markov (in old codebase, but probably in new too) error: + File "/var/www/drbotzo.incorporeal.org/dr_botzo/dr_botzo/ircbot/Module.py", line 125, in on_pub_or_privmsg + return self.do(connection, event, nick, userhost, what, admin_unlocked) + File "/var/www/drbotzo.incorporeal.org/dr_botzo/dr_botzo/ircbot/modules/Markov.py", line 143, in do + u" ".join(_generate_line(context, topics=topics, max_sentences=1)))) + File "../dr_botzo/markov/views.py", line 158, in _generate_line + line += _generate_longish_sentence(context, topics=topics, max_words=max_words) + File "../dr_botzo/markov/views.py", line 141, in _generate_longish_sentence + sent = _generate_sentence(context, topics=topics, max_words=max_words) + File "../dr_botzo/markov/views.py", line 127, in _generate_sentence + words.append(_get_word_out_of_states(new_states)) + File "../dr_botzo/markov/views.py", line 180, in _get_word_out_of_states + hit = random.randint(0, count_sum) + File "/usr/lib64/python2.7/random.py", line 242, in randint + return self.randrange(a, b+1) + TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'