mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Catch a KeyError when trying to remove a non-existent herald.
This commit is contained in:
parent
847a98c8c0
commit
3aafc97a7f
@ -229,8 +229,11 @@ class Herald(callbacks.Privmsg):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
irc.errorNoUser()
|
irc.errorNoUser()
|
||||||
return
|
return
|
||||||
|
try:
|
||||||
del self.db[channel, id]
|
del self.db[channel, id]
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
|
except KeyError:
|
||||||
|
irc.error('I have no herald for that user.')
|
||||||
|
|
||||||
def change(self, irc, msg, args):
|
def change(self, irc, msg, args):
|
||||||
"""[<channel>] <user|nick|hostmask> <regexp>
|
"""[<channel>] <user|nick|hostmask> <regexp>
|
||||||
|
Loading…
Reference in New Issue
Block a user