mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Let's handle old registry entries gracefully.
This commit is contained in:
parent
bb08574192
commit
3f0dcf15d1
@ -427,7 +427,10 @@ class RichReplyMethods(object):
|
||||
|
||||
def errorNoUser(self, s='', name='that user', **kwargs):
|
||||
v = conf.supybot.replies.noUser.get(self.msg.args[0])()
|
||||
try:
|
||||
v = v % name
|
||||
except TypeError:
|
||||
log.warning('supybot.replies.noUser should have one "%s" in it.')
|
||||
self.error(self.__makeReply(v, s), **kwargs)
|
||||
|
||||
def errorRequiresPrivacy(self, s='', **kwargs):
|
||||
|
Loading…
Reference in New Issue
Block a user