Open ReimarBauer opened 2 weeks ago
happens also sometimes here https://github.com/Open-MSS/MSS/actions/runs/11200358961/job/31133900608?pr=2554#step:6:1165
import os
class WMSControlWidget: def init(self, wms_cache): self.wms_cache = wms_cache os.makedirs(self.wms_cache, exist_ok=True) # Ensure the cache directory exists
def service_cache(self):
if os.path.exists(self.wms_cache):
files = [os.path.join(self.wms_cache, f) for f in os.listdir(self.wms_cache)]
# ... process files
else:
files = [] # Handle the case where the directory does not exist
def __del__(self):
# Consider removing any critical logic here or checking for existence
try:
self.service_cache()
except Exception as e:
# Log the exception if necessary
pass
Not each test is failing. On production I don't have seen that problem. We need to investigate why in this order of tests the problem occures and likly improve a test.
I see this sometimes on my local tests