sopel-irc / sopel

:robot::speech_balloon: An easy-to-use and highly extensible IRC Bot framework. Formerly Willie.
https://sopel.chat
Other
948 stars 403 forks source link

AttributeError: 'NoneType' object has no attribute 'is_nick' #606

Closed knubie closed 9 years ago

knubie commented 10 years ago

Getting this error when running willie after connecting to the server:

Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/asyncore.py", line 83, in read
    obj.handle_read_event()
  File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/asyncore.py", line 449, in handle_read_event
    self.handle_read()
  File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/asynchat.py", line 158, in handle_read
    self.found_terminator()
  File "/Users/Matt/Code/nfl-bot/venv/lib/python2.7/site-packages/willie/irc.py", line 436, in found_terminator
    self.dispatch(origin, text, args)
  File "/Users/Matt/Code/nfl-bot/venv/lib/python2.7/site-packages/willie/bot.py", line 767, in dispatch
    text, origin, text, match, event, args, self
  File "/Users/Matt/Code/nfl-bot/venv/lib/python2.7/site-packages/willie/bot.py", line 609, in __new__
    s.is_privmsg = origin.sender.is_nick()
AttributeError: 'NoneType' object has no attribute 'is_nick'
elad661 commented 10 years ago

how is origin.sender==None? this is weird.

What version of willie are you running? How did you install it?

knubie commented 10 years ago

Using v4.4.1 and installed with pip install willie

I should note the bot continues to run fine (AFAICT) after throwing the error (which it does twice).

My server sends the following numeric replies after connection: 001, 005, 375, 422, 372, 376

elad661 commented 10 years ago

Please try with git master and see if you can reproduce the issue there. If it does reproduce please attach the raw.log file (after cleaning it of personal information)

elad661 commented 9 years ago

No comment since August, needinfo since September... I assume it's no longer relevant. If it is, comment here with the info requested and we'll re-open the issue.