#718 NoneType error If a commnd has no help


The summary says it all, I would have thought a simple check to see if there is help would work, I don't know how feasible it would be though.
It's possible isn't implemented for a reason or perhaps it was just never thought of, as any plugins made in the early days were in all probability all made 'properly' :p Remove this is you deem it un-needed/wrong, i just think it would be useful just in case.

/home/isis/logs/messages.log: ERROR 2012-01-08T02:16:00 supybot Uncaught exception in ['help'].
/home/isis/logs/messages.log: Traceback (most recent call last):
/home/isis/logs/messages.log: File "/usr/local/lib/python2.7/dist-packages/supybot/callbacks.py", line 1207, in _callCommand
/home/isis/logs/messages.log: self.callCommand(command, irc, msg, args, kwargs)
/home/isis/logs/messages.log: File "/usr/local/lib/python2.7/dist-packages/supybot/utils/python.py", line 86, in g
/home/isis/logs/messages.log: f(self, *args,
/home/isis/logs/messages.log: File "/usr/local/lib/python2.7/dist-packages/supybot/callbacks.py", line 1185, in callCommand
/home/isis/logs/messages.log: method(irc, msg,
args, kwargs)
/home/isis/logs/messages.log: File "/usr/local/lib/python2.7/dist-packages/supybot/commands.py", line 974, in newf
/home/isis/logs/messages.log: f(self, irc, msg, args, *state.args,
/home/isis/logs/messages.log: File "/usr/local/lib/python2.7/dist-packages/supybot/plugins/Misc/plugin.py", line 202, in help
/home/isis/logs/messages.log: irc.reply(cbs[0].getCommandHelp(command, False))
/home/isis/logs/messages.log: File "/usr/local/lib/python2.7/dist-packages/supybot/callbacks.py", line 1239, in getCommandHelp
return help(method, name=formatCommand(command))
File "/usr/local/lib/python2.7/dist-packages/supybot/callbacks.py", line 226, in getHelp
doclines = method.doc.splitlines()
AttributeError: 'NoneType' object has no attribute 'splitlines'


  • James McCoy

    James McCoy - 2013-08-24
    • status: open --> closed
    • assigned_to: James McCoy
  • James McCoy

    James McCoy - 2013-08-24

    Huh, I'm surprised we didn't run into this sooner. :) Fixed in [333067].



    Commit: [333067]

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks