issue #1701 removed further except: statements

This commit is contained in:
Sebastian Hoogen
2014-08-24 19:48:23 +02:00
parent d49528b27e
commit 83543c71c6
4 changed files with 11 additions and 14 deletions

View File

@@ -55,7 +55,7 @@ def insert(filename,docname):
"called when freecad wants to import a file"
try:
doc = FreeCAD.getDocument(docname)
except:
except NameError:
doc = FreeCAD.newDocument(docname)
FreeCAD.ActiveDocument = doc
read(filename)