fix crash with empty docstring
This commit is contained in:
parent
fdf685161e
commit
3e9708cc79
|
@ -111,7 +111,8 @@ def dispatch(input, kind, func, args, autohelp=False):
|
||||||
if input == None:
|
if input == None:
|
||||||
return
|
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__)
|
input.reply(func.__doc__)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue