BUGS: "document" a bug i saw just before

This commit is contained in:
Brian S. Stephan 2015-05-27 20:04:49 -05:00
parent 6842fad841
commit 291c88755d
1 changed files with 16 additions and 0 deletions

16
BUGS
View File

@ -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'