debug: Exceptions might have been caused by non-message events

Bug #655643 reported by Stefano Rivera
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ibid
Fix Committed
Low
Max Rabkin

Bug Description

With this exception in memory:

2010-10-06 13:01:27,675 ERROR core.dispatcher: Exception occured in Log processor of log plugin.
Event: {'account': None, 'responses': [], 'source': u'atrum', 'state': u'offline', 'session': <sqlalchemy.orm.session.Session object at 0x4fa9090>, 'processed': False, 'time': datetime.datetime(2010, 10, 6, 11, 1, 27, 667092), 'identity': 14, 'message': u'Ping timeout', 'type': u'state', 'public': True, 'channel': None, 'sender': {'nick': u'Hodgestar', 'connection': u'Hodgestar', 'id': u'Hodgestar'}}
Traceback (most recent call last):
  File "/home/stefanor/bzr/ibid/stefanor/tibid/ibid/core.py", line 29, in process
    processor.process(event)
  File "/home/stefanor/bzr/ibid/stefanor/tibid/ibid/plugins/__init__.py", line 137, in process
    method(event)
  File "/home/stefanor/bzr/ibid/stefanor/tibid/ibid/plugins/log.py", line 176, in log_handler
    self.log_event(event)
  File "/home/stefanor/bzr/ibid/stefanor/tibid/ibid/plugins/log.py", line 169, in log_event
    file = self.get_logfile(event)
  File "/home/stefanor/bzr/ibid/stefanor/tibid/ibid/plugins/log.py", line 124, in get_logfile
    self.recent_logs.remove(log)
ValueError: list.remove(x): x not in list

This happens:

2010-10-06 13:01:47,095 ERROR core.dispatcher: Exception occured in LastException processor of debug plugin.
Event: {'account': 1, 'responses': [], 'source': u'shadowfire', 'addressed': u'tibid', 'session': <sqlalchemy.orm.session.Session object at 0x4f1f250>, 'processed': False, 'time': datetime.datetime(2010, 10, 6, 11, 1, 47, 85268), 'identity': 55, 'message': {'raw': u'tibid: last exception', 'deaddressed': u'last exception', 'clean': u'last exception', 'stripped': u'tibid: last exception'}, 'type': u'message', 'public': True, 'channel': u'#compsci', 'sender': {'nick': u'tumbleweed', 'connection': u'tumbleweed!~<email address hidden>', 'id': u'tumbleweed'}}
Traceback (most recent call last):
  File "/home/stefanor/bzr/ibid/stefanor/tibid/ibid/core.py", line 29, in process
    processor.process(event)
  File "/home/stefanor/bzr/ibid/stefanor/tibid/ibid/plugins/__init__.py", line 145, in process
    method(event, *match.groups())
  File "/home/stefanor/bzr/ibid/stefanor/tibid/ibid/plugins/debug.py", line 47, in exception
    'message': exc_event.message['raw']}]
TypeError: string indices must be integers

Tags: debug

Related branches

Max Rabkin (max-rabkin)
Changed in ibid:
status: Triaged → In Progress
assignee: nobody → Max Rabkin (max-rabkin)
Revision history for this message
Stefano Rivera (stefanor) wrote :

2010-10-07 17:06:30,309 ERROR core.dispatcher: Exception occured in Log processor of log plugin.
Event: {'account': None, 'responses': [], 'source': u'atrum', 'state': u'offline', 'session': <sqlalchemy.orm.session.Session object at 0x4fa9fd0>, 'processed': False, 'time': datetime.datetime(2010, 10, 7, 15, 6, 30, 275228), 'identity': 12, 'message': u'User Quit: Leaving', 'type': u'state', 'public': True, 'channel': None, 'sender': {'nick': u'confluence', 'connection': u'confluence', 'id': u'confluence'}}
Traceback (most recent call last):
  File "/home/stefanor/bzr/ibid/stefanor/tibid/ibid/core.py", line 29, in process
    processor.process(event)
  File "/home/stefanor/bzr/ibid/stefanor/tibid/ibid/plugins/__init__.py", line 137, in process
    method(event)
  File "/home/stefanor/bzr/ibid/stefanor/tibid/ibid/plugins/log.py", line 176, in log_handler
    self.log_event(event)
  File "/home/stefanor/bzr/ibid/stefanor/tibid/ibid/plugins/log.py", line 169, in log_event
    file = self.get_logfile(event)
  File "/home/stefanor/bzr/ibid/stefanor/tibid/ibid/plugins/log.py", line 115, in get_logfile
    and fnmatch.fnmatch(event.channel, channel_glob)):
  File "/usr/lib/python2.6/fnmatch.py", line 43, in fnmatch
    return fnmatchcase(name, pat)
  File "/usr/lib/python2.6/fnmatch.py", line 79, in fnmatchcase
    return _cache[pat].match(name) is not None
TypeError: expected string or buffer

caused:

2010-10-07 17:29:18,305 ERROR core.dispatcher: Exception occured in LastException processor of debug plugin.
Event: {'account': 1, 'responses': [], 'source': u'atrum', 'addressed': u'tibid', 'processed': False, 'time': datetime.datetime(2010, 10, 7, 15, 29, 18, 296625), 'identity': 1, 'message': {'raw': u'tibid: last exception', 'deaddressed': u'last exception', 'clean': u'last exception', 'stripped': u'tibid: last exception'}, 'type': u'message', 'public': True, 'channel': u'#ibid', 'sender': {'nick': u'tumbleweed', 'connection': u'tumbleweed!<email address hidden>', 'id': u'tumbleweed'}}
Traceback (most recent call last):
  File "/home/stefanor/bzr/ibid/stefanor/tibid/ibid/core.py", line 29, in process
    processor.process(event)
  File "/home/stefanor/bzr/ibid/stefanor/tibid/ibid/plugins/__init__.py", line 145, in process
    method(event, *match.groups())
  File "/home/stefanor/bzr/ibid/stefanor/tibid/ibid/plugins/debug.py", line 49, in exception
    lines = [u'%(type)s event triggered' % exc_event.type]
TypeError: format requires a mapping

Changed in ibid:
status: In Progress → Fix Committed
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.