fix for autocomp., was raising an error when autocompleating functions defined in the console because their file wasnt found (which is correct in this case).

This commit is contained in:
Campbell Barton
2010-07-14 14:56:33 +00:00
parent 267c286091
commit 46f89336d6

View File

@@ -124,7 +124,7 @@ def get_argspec(func, strip_self=True, doc=None, source=None):
if source is None:
try:
source = inspect.getsource(func)
except TypeError:
except (TypeError, IOError):
source = ''
if source:
match = re.search(DEF_SOURCE % func_name, source, RE_FLAG)