From e942288a9c0f06745bc12bd95f72a8e5a2dd25ae Mon Sep 17 00:00:00 2001 From: Campbell Barton <ideasman42@gmail.com> Date: Fri, 4 Mar 2011 05:26:48 +0000 Subject: [PATCH] correct exception --- io_mesh_stl/blender_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_mesh_stl/blender_utils.py b/io_mesh_stl/blender_utils.py index f763929a3..eb31e86a5 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: -- GitLab