mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Make sure to catch any KeyErrors.
This commit is contained in:
parent
3a061ad3c8
commit
c444ec3b1b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user