mirror of https://github.com/Mikaela/Limnoria.git
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):
|
def errorNoUser(self, s='', name='that user', **kwargs):
|
||||||
v = conf.supybot.replies.noUser.get(self.msg.args[0])()
|
v = conf.supybot.replies.noUser.get(self.msg.args[0])()
|
||||||
|
try:
|
||||||
v = v % name
|
v = v % name
|
||||||
|
except TypeError:
|
||||||
|
log.warning('supybot.replies.noUser should have one "%s" in it.')
|
||||||
self.error(self.__makeReply(v, s), **kwargs)
|
self.error(self.__makeReply(v, s), **kwargs)
|
||||||
|
|
||||||
def errorRequiresPrivacy(self, s='', **kwargs):
|
def errorRequiresPrivacy(self, s='', **kwargs):
|
||||||
|
|
Loading…
Reference in New Issue