Make sure to catch any KeyErrors.

This commit is contained in:
James Vega 2005-05-01 22:54:14 +00:00
parent 3a061ad3c8
commit c444ec3b1b

View File

@ -134,7 +134,10 @@ class Todo(callbacks.Plugin):
will return a list of task ids that that user has added to their todo
list.
"""
u = ircdb.users.getUser(msg.prefix)
try:
u = ircdb.users.getUser(msg.prefix)
except KeyError:
u = None
# List the active tasks for the given user
if not taskid:
try: