fix crash with empty docstring

This commit is contained in:
Ryan Hitchman 2010-06-29 01:02:48 -06:00
parent fdf685161e
commit 3e9708cc79
1 changed files with 2 additions and 1 deletions

View File

@ -111,7 +111,8 @@ def dispatch(input, kind, func, args, autohelp=False):
if input == None:
return
if autohelp and args.get('autohelp', True) and not input.inp:
if autohelp and args.get('autohelp', True) and not input.inp \
and func.__doc__ is not None:
input.reply(func.__doc__)
return