diff --git a/wxPython/wxPython/py/introspect.py b/wxPython/wxPython/py/introspect.py index 5c02dc624c..3bdff3a460 100644 --- a/wxPython/wxPython/py/introspect.py +++ b/wxPython/wxPython/py/introspect.py @@ -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."