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)


_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to