mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-24 03:29:28 +01:00
pylint cleanups
This commit is contained in:
parent
3e1be1858b
commit
efb7891f46
@ -96,7 +96,7 @@ class Channel(callbacks.Privmsg):
|
|||||||
channel limit. <channel> is only necessary if the message isn't sent
|
channel limit. <channel> is only necessary if the message isn't sent
|
||||||
in the channel itself.
|
in the channel itself.
|
||||||
"""
|
"""
|
||||||
limit = privmsg.getArgs(args)
|
limit = privmsgs.getArgs(args)
|
||||||
try:
|
try:
|
||||||
limit = int(limit)
|
limit = int(limit)
|
||||||
if limit < 0:
|
if limit < 0:
|
||||||
|
@ -241,7 +241,8 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
self.log.error('Error loading src/ plugin %s. '
|
self.log.error('Error loading src/ plugin %s. '
|
||||||
'This is usually rather '
|
'This is usually rather '
|
||||||
'serious; these plugins are '
|
'serious; these plugins are '
|
||||||
'almost always be loaded.', s)
|
'almost always be loaded.',
|
||||||
|
name)
|
||||||
|
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
log.exception('Failed to load %s:', name)
|
log.exception('Failed to load %s:', name)
|
||||||
|
@ -426,7 +426,7 @@ class RichReplyMethods(object):
|
|||||||
else:
|
else:
|
||||||
log.warning('Denying %s for some unspecified capability '
|
log.warning('Denying %s for some unspecified capability '
|
||||||
'(or a default)', self.msg.prefix)
|
'(or a default)', self.msg.prefix)
|
||||||
v = conf.supybot.replies.genericNoCapability.get(msg.args[0])()
|
v = conf.supybot.replies.genericNoCapability.get(self.msg.args[0])()
|
||||||
self.error(self.__makeReply(v, s), **kwargs)
|
self.error(self.__makeReply(v, s), **kwargs)
|
||||||
|
|
||||||
def errorPossibleBug(self, s='', **kwargs):
|
def errorPossibleBug(self, s='', **kwargs):
|
||||||
|
Loading…
Reference in New Issue
Block a user