mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
Handle corrupt geometry caches (e.g. due to crash) by creating a fresh cache.
This commit is contained in:
@@ -96,7 +96,11 @@ 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:
|
||||||
return
|
os.remove(IfcStore.cache_path)
|
||||||
|
try:
|
||||||
|
IfcStore.cache = ifcopenshell.geom.serializers.hdf5(IfcStore.cache_path, cache_settings)
|
||||||
|
except:
|
||||||
|
return
|
||||||
return IfcStore.cache
|
return IfcStore.cache
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user