[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30327] trunk/blender/release/scripts/ modules/console/complete_calltip.py: 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).

Campbell Barton ideasman42 at gmail.com
Wed Jul 14 16:56:33 CEST 2010


Revision: 30327
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30327
Author:   campbellbarton
Date:     2010-07-14 16:56:33 +0200 (Wed, 14 Jul 2010)

Log Message:
-----------
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).

Modified Paths:
--------------
    trunk/blender/release/scripts/modules/console/complete_calltip.py

Modified: trunk/blender/release/scripts/modules/console/complete_calltip.py
===================================================================
--- trunk/blender/release/scripts/modules/console/complete_calltip.py	2010-07-14 14:31:27 UTC (rev 30326)
+++ trunk/blender/release/scripts/modules/console/complete_calltip.py	2010-07-14 14:56:33 UTC (rev 30327)
@@ -124,7 +124,7 @@
         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)





More information about the Bf-blender-cvs mailing list