Protect against inspect.getdoc() failing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -174,7 +174,10 @@ def getCallTip(command='', locals=None):
|
|||||||
tip1 = name + argspec
|
tip1 = name + argspec
|
||||||
doc = ''
|
doc = ''
|
||||||
if callable(object):
|
if callable(object):
|
||||||
doc = inspect.getdoc(object)
|
try:
|
||||||
|
doc = inspect.getdoc(object)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
if doc:
|
if doc:
|
||||||
# tip2 is the first separated line of the docstring, like:
|
# tip2 is the first separated line of the docstring, like:
|
||||||
# "Return call tip text for a command."
|
# "Return call tip text for a command."
|
||||||
|
Reference in New Issue
Block a user