From e942288a9c0f06745bc12bd95f72a8e5a2dd25ae Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 4 Mar 2011 05:26:48 +0000 Subject: correct exception --- io_mesh_stl/blender_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io_mesh_stl') diff --git a/io_mesh_stl/blender_utils.py b/io_mesh_stl/blender_utils.py index f763929a..eb31e86a 100644 --- a/io_mesh_stl/blender_utils.py +++ b/io_mesh_stl/blender_utils.py @@ -56,7 +56,7 @@ def faces_from_mesh(ob, apply_modifier=False, triangulate=True): try: mesh = ob.create_mesh(bpy.context.scene, apply_modifier, "PREVIEW") - except SystemError: + except RuntimeError: return () if triangulate: -- cgit v1.2.3