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: try:
IfcStore.cache = ifcopenshell.geom.serializers.hdf5(IfcStore.cache_path, cache_settings) IfcStore.cache = ifcopenshell.geom.serializers.hdf5(IfcStore.cache_path, cache_settings)
except: except:
os.remove(IfcStore.cache_path) if os.path.exists(IfcStore.cache_path):
try: os.remove(IfcStore.cache_path)
IfcStore.cache = ifcopenshell.geom.serializers.hdf5(IfcStore.cache_path, cache_settings) try:
except: IfcStore.cache = ifcopenshell.geom.serializers.hdf5(IfcStore.cache_path, cache_settings)
except:
return
else:
return return
return IfcStore.cache return IfcStore.cache