mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Fix traceback if supybot.errors.noCapability does not contain %s.
This commit is contained in:
parent
574d73c14e
commit
9a23ba1cfa
@ -517,7 +517,10 @@ class RichReplyMethods(object):
|
||||
v = self._getConfig(conf.supybot.replies.genericNoCapability)
|
||||
else:
|
||||
v = self._getConfig(conf.supybot.replies.noCapability)
|
||||
try:
|
||||
v %= capability
|
||||
except TypeError: # No %s in string
|
||||
pass
|
||||
s = self.__makeReply(v, s)
|
||||
if s:
|
||||
return self._error(s, **kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user