Nickserv logs a stack trace when a user quits

Bug #317595 reported by Jeremy Thurgood
2
Affects Status Importance Assigned to Milestone
Kali
Fix Released
Low
Jeremy Thurgood

Bug Description

Looks like we're trying to logout a user who no longer exists.

 Traceback (most recent call last):
   File "/var/lib/python-support/python2.5/axiom/store.py", line 1659, in transact
     result = f(*a, **k)
   File "/home/jerith/python/kali/trunk/kali/protocol.py", line 159, in handle
     method(prefix, *params)
   File "/home/jerith/python/kali/trunk/kali/protocol.py", line 178, in irc_QUIT
     self.services.event('quit', source, msg)
   File "/home/jerith/python/kali/trunk/kali/controller.py", line 338, in event
     self.sendEvent(p, event, *params)
 --- <exception caught here> ---
   File "/home/jerith/python/kali/trunk/kali/controller.py", line 349, in sendEvent
     method(*params)
   File "/home/jerith/python/kali/trunk/kali/nickserv.py", line 198, in event_quit
     self.logout(nick)
   File "/home/jerith/python/kali/trunk/kali/nickserv.py", line 161, in logout
     self.ctrl.getUser(nick).registered = False
 exceptions.AttributeError: 'NoneType' object has no attribute 'registered'

Related branches

Revision history for this message
Jeremy Thurgood (jerith) wrote :

By the time NickServ gets the quit event, the user no longer exists. It should be safe to just drop the logout.

Changed in kali:
assignee: nobody → jerith
importance: Undecided → Low
status: New → In Progress
Changed in kali:
milestone: none → 1.0.0
Jeremy Thurgood (jerith)
Changed in kali:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.