mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +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)
|
v = self._getConfig(conf.supybot.replies.genericNoCapability)
|
||||||
else:
|
else:
|
||||||
v = self._getConfig(conf.supybot.replies.noCapability)
|
v = self._getConfig(conf.supybot.replies.noCapability)
|
||||||
|
try:
|
||||||
v %= capability
|
v %= capability
|
||||||
|
except TypeError: # No %s in string
|
||||||
|
pass
|
||||||
s = self.__makeReply(v, s)
|
s = self.__makeReply(v, s)
|
||||||
if s:
|
if s:
|
||||||
return self._error(s, **kwargs)
|
return self._error(s, **kwargs)
|
||||||
|
Loading…
Reference in New Issue
Block a user