From eab2338cf36c2937f725933e4daa871ef5ee41e0 Mon Sep 17 00:00:00 2001 From: Jeremy Wright Date: Mon, 18 Aug 2014 15:16:05 -0400 Subject: [PATCH] Attempting to track down an exception with importing a STEP file that's masked by the try/except. --- cadquery/freecad_impl/importers.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cadquery/freecad_impl/importers.py b/cadquery/freecad_impl/importers.py index 1b362f4..e6a000b 100644 --- a/cadquery/freecad_impl/importers.py +++ b/cadquery/freecad_impl/importers.py @@ -50,12 +50,12 @@ def importStep(fileName): """ #Now read and return the shape - try: - rshape = Part.read(fileName) + # try: + rshape = Part.read(fileName) - r = Shape.cast(rshape) - #print "loadStep: " + str(r) - #print "Faces=%d" % cadquery.CQ(r).solids().size() - return cadquery.CQ(r) - except: - raise ValueError("STEP File Could not be loaded") + r = Shape.cast(rshape) + #print "loadStep: " + str(r) + #print "Faces=%d" % cadquery.CQ(r).solids().size() + return cadquery.CQ(r) + # except: + # raise ValueError("STEP File Could not be loaded")