sheffgeeks / burritobot

An irc bot that has undisclosed burrito opinions
Apache License 2.0
5 stars 4 forks source link

output referenced before assignment #2

Closed garym closed 10 years ago

garym commented 10 years ago

DEBUG:irc.client:command: pubmsg, source: somenick, target: #somechannel, arguments: ['testburrito: time: format %H:%M:%S.%f'] DEBUG:irc.client:_dispatcher: pubmsg ERROR:root:Exception not handled by plugin: Traceback (most recent call last): File "/vagrant/burrito/burritocli.py", line 74, in run comms.run_once() File "/vagrant/burrito/plugins/ircbot.py", line 122, in run_once self.conn.ircobj.process_once() File "/home/vagrant/burritoenv/lib/python3.2/site-packages/irc/client.py", line 248, in process_once self.process_data(i) File "/home/vagrant/burritoenv/lib/python3.2/site-packages/irc/client.py", line 213, in process_data c.process_data() File "/home/vagrant/burritoenv/lib/python3.2/site-packages/irc/client.py", line 561, in process_data self._process_line(line) File "/home/vagrant/burritoenv/lib/python3.2/site-packages/irc/client.py", line 629, in _process_line self._handle_event(Event(command, NickMask(prefix), target, [m])) File "/home/vagrant/burritoenv/lib/python3.2/site-packages/irc/client.py", line 651, in _handle_event self.irclibobj._handle_event(self, event) File "/home/vagrant/burritoenv/lib/python3.2/site-packages/irc/client.py", line 387, in _handle_event result = handler.callback(connection, event) File "/home/vagrant/burritoenv/lib/python3.2/site-packages/irc/client.py", line 1188, in _dispatcher method(connection, event) File "/vagrant/burrito/plugins/ircbot.py", line 53, in on_pubmsg self.do_command(event, message, to_me) File "/vagrant/burrito/plugins/ircbot.py", line 61, in do_command self.connection, to_me=to_me) File "/vagrant/burrito/utils.py", line 32, in do_command responses = torun(command, data) if to_me and torun is not None else [] File "/vagrant/burrito/plugins/dates.py", line 38, in cmd_date return reply_to_user(data, output) UnboundLocalError: local variable 'output' referenced before assignment