NameError in Karma-Plugin

Bug #213958 reported by Michael Otteneder on 2008-04-08
2
Affects Status Importance Assigned to Milestone
P1tr
Low
Michael Otteneder

Bug Description

I updated form rev86 to rev87 now P1tr gives the following exception on start:

--- <exception caught here> ---
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/twisted/words/protocols/irc.py", line 1498, in handleCommand
    method(prefix, params)
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/twisted/words/protocols/irc.py", line 1060, in irc_NOTICE
    self.noticed(user, channel, message)
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/twisted/words/protocols/irc.py", line 701, in noticed
    self.privmsg(user, channel, message)
  File "/Users/mc/dev/p1tr/lib/core.py", line 41, in privmsg
    self.factory.plugin_handler.handle(Message(self, channel, user, msg))
  File "/Users/mc/dev/p1tr/lib/plugins.py", line 81, in handle
    answer = listener._listen_(msg)
  File "/Users/mc/dev/p1tr/plugins/karma.py", line 26, in _listen_
    if lower(word[:-2]) == lower(msg.user.name):
<type 'exceptions.NameError'>: global name 'lower' is not defined

Obviously the function "lower" simply does not exist. It looks like someone wanted to use the deprecated String module and forgot to add the import. But I'm not sure about this.

Changed in p1tr:
assignee: nobody → m-otteneder
importance: Undecided → Low
milestone: none → beta
status: New → In Progress
Changed in p1tr:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers