Skip to content

Commit

Permalink
Add another solution in error message about TypeErrors raised in plug…
Browse files Browse the repository at this point in the history
…ins' __init__()
  • Loading branch information
progval committed Mar 5, 2011
1 parent ad95bc9 commit 65d7378
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 65d7378

Please sign in to comment.