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:
Patrick K. O'Brien
2003-05-19 21:41:24 +00:00
parent af8b8aa277
commit 519a8af2fa

View File

@@ -174,7 +174,10 @@ def getCallTip(command='', locals=None):
tip1 = name + argspec
doc = ''
if callable(object):
doc = inspect.getdoc(object)
try:
doc = inspect.getdoc(object)
except:
pass
if doc:
# tip2 is the first separated line of the docstring, like:
# "Return call tip text for a command."