cleanup
Some checks failed
Build and deploy the backend to staging / Build and push image (pull_request) Successful in 2m16s
Run linting on the backend code / Build (pull_request) Successful in 28s
Run testing on the backend code / Build (pull_request) Failing after 1m14s
Build and deploy the backend to staging / Deploy to staging (pull_request) Successful in 24s

This commit is contained in:
2025-01-23 12:01:49 +01:00
parent b9356dc4ee
commit 28ff0460ab
26 changed files with 56 additions and 196439 deletions

View File

@@ -106,7 +106,7 @@ class XMLCache(CachingStrategyBase):
tree = ET.parse(filename)
return tree.getroot() # Return the root element of the parsed XML
except ET.ParseError:
print(f"Error parsing cached XML file: {filename}")
# print(f"Error parsing cached XML file: {filename}")
return None
return None
@@ -119,7 +119,7 @@ class XMLCache(CachingStrategyBase):
with open(filename, 'wb') as file:
tree.write(file, encoding='utf-8', xml_declaration=True)
except IOError as e:
print(f"Error writing to cache file: {filename} - {e}")
raise IOError(f"Error writing to cache file: {filename} - {e}") from e
class CachingStrategy: