mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Add another solution in error message about TypeErrors raised in plugins' __init__()
This commit is contained in:
parent
ad95bc96a8
commit
65d737873b
@ -86,7 +86,10 @@ def loadPluginClass(irc, module, register=None):
|
||||
'its __init__ method and needs to update its prototype ' \
|
||||
'to be \'def __init__(self, irc):\' as well as passing ' \
|
||||
'that irc object on to any calls to the plugin\'s ' \
|
||||
'parent\'s __init__.' % module.__name__
|
||||
'parent\'s __init__. Another possible cause: the code in ' \
|
||||
'your __init__ raised a TypeError when calling a function '
|
||||
'or creating an object, which doesn\'t take 2 arguments.' %\
|
||||
module.__name__
|
||||
else:
|
||||
raise
|
||||
except AttributeError, e:
|
||||
|
Loading…
Reference in New Issue
Block a user