Let's handle old registry entries gracefully.

This commit is contained in:
Jeremy Fincher 2004-07-24 02:29:26 +00:00
parent bb08574192
commit 3f0dcf15d1

View File

@ -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):