Fixes name 'PyExc_FC_AbortIOException' is not defined

This commit is contained in:
Benjamin Nauck
2024-09-26 11:41:06 +02:00
committed by Yorik van Havre
parent 842e2c693a
commit fe9ec915f4

View File

@@ -1,3 +1,6 @@
from FreeCAD import Base
def OpenInsertObject(importerModule, objectPath, importMethod, docName = ""):
try:
importArgs = []
@@ -9,5 +12,5 @@ def OpenInsertObject(importerModule, objectPath, importMethod, docName = ""):
importKwargs["options"] = importerModule.importOptions(objectPath)
getattr(importerModule, importMethod)(objectPath, *importArgs, **importKwargs)
except PyExc_FC_AbortIOException:
except Base.AbortIOException:
pass