mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-18 22:51:01 +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
|
will return a list of task ids that that user has added to their todo
|
||||||
list.
|
list.
|
||||||
"""
|
"""
|
||||||
|
try:
|
||||||
u = ircdb.users.getUser(msg.prefix)
|
u = ircdb.users.getUser(msg.prefix)
|
||||||
|
except KeyError:
|
||||||
|
u = None
|
||||||
# List the active tasks for the given user
|
# List the active tasks for the given user
|
||||||
if not taskid:
|
if not taskid:
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user