This commit is contained in:
Dion Moult
2023-01-26 11:09:51 +11:00
parent e0fd3fd90e
commit 0b6d321d83
+7 -4
View File
@@ -96,10 +96,13 @@ class IfcStore:
try:
IfcStore.cache = ifcopenshell.geom.serializers.hdf5(IfcStore.cache_path, cache_settings)
except:
os.remove(IfcStore.cache_path)
try:
IfcStore.cache = ifcopenshell.geom.serializers.hdf5(IfcStore.cache_path, cache_settings)
except:
if os.path.exists(IfcStore.cache_path):
os.remove(IfcStore.cache_path)
try:
IfcStore.cache = ifcopenshell.geom.serializers.hdf5(IfcStore.cache_path, cache_settings)
except:
return
else:
return
return IfcStore.cache