Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-07-14 18:56:33 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-07-14 18:56:33 +0400
commit46f89336d644fd45d1960465637f67d0918a94bd (patch)
treec4c356195181311e11198167748db9d102548846 /release
parent267c286091d84cec17bfb6eb392699a4f2018a5b (diff)
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).
Diffstat (limited to 'release')
-rw-r--r--release/scripts/modules/console/complete_calltip.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/modules/console/complete_calltip.py b/release/scripts/modules/console/complete_calltip.py
index c4687b4f10b..87fac9f4c07 100644
--- a/release/scripts/modules/console/complete_calltip.py
+++ b/release/scripts/modules/console/complete_calltip.py
@@ -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)