mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-28 05:32:51 +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])()
|
||||
v = v % name
|
||||
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