Exception thrown when you ask for stats for an account name rather than a nick
tonyravioli opened this issue · comments
Pasta Ravioli commented
Log:
DEBUG:bearded-potato-donger:command: pubmsg, source: ravioli!~ravioli@unaffiliated/ravioli, target: #donger, arguments: ['!stats MRX']
Unhandled exception in thread started by <bound method Donger._pubmsg of <__main__.Donger object at 0x22ee610>>
Traceback (most recent call last):
File "./dongerdong.py", line 374, in _pubmsg
if cli.channels[ev.target.lower()].users[nick.lower()].account != None:
KeyError: 'mrx'
What's up with that "!= None" thing? I don't even know what that line's doing.
Polsaker commented
That line tries to check if the user passed a nick of an identified
user... would have to add a try... except thing around it
2015-03-06 11:00 GMT-03:00, Pasta Ravioli notifications@github.com:
Log:
DEBUG:bearded-potato-donger:command: pubmsg, source: ravioli!~ravioli@unaffiliated/ravioli, target: #donger, arguments: ['!stats MRX'] Unhandled exception in thread started by <bound method Donger._pubmsg of <__main__.Donger object at 0x22ee610>> Traceback (most recent call last): File "./dongerdong.py", line 374, in _pubmsg if cli.channels[ev.target.lower()].users[nick.lower()].account != None: KeyError: 'mrx'
What's up with that "!= None" thing? I don't even know what that line's
doing.
Reply to this email directly or view it on GitHub:
#20