Fixed another bug in the new rank command.

This commit is contained in:
Jeremy Fincher 2007-10-23 04:59:49 +00:00 committed by James Vega
parent 8fefeaa11f
commit 67d262a575

View File

@ -306,9 +306,9 @@ class ChannelStats(callbacks.Plugin):
v = float('inf') v = float('inf')
except NameError, e: except NameError, e:
irc.error('You referenced an invalid stat variable:', irc.error('You referenced an invalid stat variable:',
str(e).split()[1], raise=True) str(e).split()[1], Raise=True)
except Exception, e: except Exception, e:
irc.error(utils.exnToString(e), raise=True) irc.error(utils.exnToString(e), Raise=True)
finally: finally:
users.append((v, ircdb.users.getUser(id).name)) users.append((v, ircdb.users.getUser(id).name))
users.sort() users.sort()