Change exception on failed import for Python 2 compatibility

This commit is contained in:
Mieszko Boczkowski
2019-12-08 21:37:29 +01:00
committed by Thomas Krijnen
parent 8d4f34461e
commit f84982f99a
2 changed files with 4 additions and 4 deletions
@@ -29,7 +29,7 @@ from collections import namedtuple, Iterable
try:
from OCC.Core import V3d, TopoDS, gp, AIS, Quantity, BRepTools, Graphic3d
except ModuleNotFoundError:
except ImportError:
from OCC import V3d, TopoDS, gp, AIS, Quantity, BRepTools, Graphic3d
shape_tuple = namedtuple('shape_tuple', ('data', 'geometry', 'styles'))