factoid gags on unicode

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

Bug Description

Event: {'account': 12, 'responses': [], 'source': u'shadowfire', 'addressed': True, 'session': <sqlalchemy.orm.session.Session object at 0x524fb90>, 'processed': False, 'time': datetime.datetime(2010, 3, 20, 14, 8, 15, 906222), 'identity': 77, 'message': {'raw': u'\xdc', 'deaddressed': u'\xdc', 'clean': u'\xdc', 'stripped': u'\xdc'}, 'type': u'message', 'public': False, 'channel': u'Taejo!<email address hidden>', 'sender': {'nick': u'Taejo', 'connection': u'Taejo!<email address hidden>', 'id': u'Taejo'}}
Traceback (most recent call last):
  File "/home/stefanor/projects/ibid/tibid/ibid/core.py", line 32, in _process
    processor.process(event)
  File "/home/stefanor/projects/ibid/tibid/ibid/plugins/__init__.py", line 144, in process
    method(event, *match.groups())
  File "/home/stefanor/projects/ibid/tibid/ibid/plugins/factoid.py", line 475, in get
    response = self.remote_get(name, number, pattern, is_regex, event)
  File "/home/stefanor/projects/ibid/tibid/ibid/plugins/factoid.py", line 488, in remote_get
    for i, capture in enumerate(re.match(pattern, name, re.I).groups()):
AttributeError: 'NoneType' object has no attribute 'groups'

Related branches

Revision history for this message
Max Rabkin (max-rabkin) wrote :

It's more complex than just choking on unicode:
<Taejo> tibid: Ü
<tibid> Taejo: I'm not feeling too well
<Taejo> tibid: ö
<tibid> Taejo: Huh?
<Taejo> tibid: 非
<tibid> Taejo: *blink*

Changed in ibid:
status: New → Triaged
Max Rabkin (max-rabkin)
Changed in ibid:
status: Triaged → In Progress
Changed in ibid:
status: In Progress → Fix Committed
Changed in ibid:
milestone: 0.2.0 → 0.1.1
Changed in ibid:
status: Fix Committed → 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.