diff --git a/src/Mod/Draft/importDXF.py b/src/Mod/Draft/importDXF.py index 3d18a9bd66..1b2050e9cd 100644 --- a/src/Mod/Draft/importDXF.py +++ b/src/Mod/Draft/importDXF.py @@ -1494,7 +1494,7 @@ def projectShape(shape,direction): edges = [] try: groups = Drawing.projectEx(shape,direction) - except OCCError: + except Part.OCCError: print("unable to project shape on direction ",direction) return shape else: