mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 18:57:17 +00:00
Fix #2721.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user