remove try except for ifcpatch import as it's not optional

This commit is contained in:
Andrej730
2024-10-04 17:14:45 +05:00
parent 0cef788a09
commit dc63e989d6
2 changed files with 2 additions and 15 deletions
@@ -20,16 +20,12 @@ import os
import bpy
import json
import ifcopenshell
import ifcpatch
import bonsai.tool as tool
import bonsai.core.patch as core
import bonsai.bim.handler
from pathlib import Path
try:
import ifcpatch
except:
print("IfcPatch not available")
class SelectIfcPatchInput(bpy.types.Operator):
bl_idname = "bim.select_ifc_patch_input"
+1 -10
View File
@@ -18,17 +18,8 @@
import bpy
import ifcopenshell
import ifcpatch
import bonsai.core.tool
from typing import TYPE_CHECKING
try:
import ifcpatch
except ImportError:
print("IfcPatch not available")
if TYPE_CHECKING:
import ifcpatch
class Patch(bonsai.core.tool.Patch):