Changeset 4290

Show
Ignore:
Timestamp:
07/16/08 14:53:20 (1 month ago)
Author:
nate
Message:

When getting a callTip and doing object Introspection, we were catching the wrong error.

Ed eliminated the try/except block for docLines but we need it to prevent and AttributeError? from being thrown.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/ui/uiwx/dEditor.py

    r4283 r4290  
    11621162                    del args[0][0] 
    11631163                args = inspect.formatargspec(args[0], args[1], args[2], args[3]) 
    1164             except IndexError: 
     1164            except TypeError: 
    11651165                args = "" 
    11661166 
     
    11791179 
    11801180            doc = "" 
    1181             docLines = obj.__doc__.splitlines() 
     1181            try: 
     1182                docLines = obj.__doc__.splitlines() 
     1183            except AttributeError: 
     1184                docLines = [] 
    11821185            for line in docLines: 
    11831186                doc += line.strip() + "\n"   ## must be \n on all platforms