From 7e281616a96a1f4c546f22d297b18f83707e841d Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 23 Jun 2015 15:32:23 -0400 Subject: [PATCH] Remove try...except from mesh conversion This creates annoying "during the handling of the above exception" messages in tracebacks that make things needlessly harder to debug --- korman/exporter/mesh.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/korman/exporter/mesh.py b/korman/exporter/mesh.py index eb041fe..484a5cc 100644 --- a/korman/exporter/mesh.py +++ b/korman/exporter/mesh.py @@ -244,9 +244,8 @@ class MeshConverter: def export_object(self, bo): # Have we already exported this mesh? - try: - drawables = self._mesh_geospans[bo.data] - except LookupError: + drawables = self._mesh_geospans.get(bo.data, None) + if drawables is None: drawables = self._export_mesh(bo) # Create the DrawInterface