flynt pass to provide consistency to string formatters and concatenation

This commit is contained in:
Ian Renton
2026-08-15 07:55:32 +01:00
parent bff5b79f8f
commit 7391c28cd0
72 changed files with 184 additions and 193 deletions
@@ -15,19 +15,19 @@ class LocalFileStaticDataProvider(StaticDataProvider):
self._stop = False
def start(self):
logging.debug("Loading " + self.name + " static reference data from file.")
logging.debug(f"Loading {self.name} static reference data from file.")
try:
ok = self._load_data(self._path)
if ok:
self.status = "OK"
self.last_update_time = datetime.now(pytz.UTC)
logging.info("Updated static reference data for " + self.name)
logging.info(f"Updated static reference data for {self.name}")
else:
self.status = "Error"
logging.error("Failed to load data for " + self.name)
logging.error(f"Failed to load data for {self.name}")
except Exception:
self.status = "Error"
logging.exception("Exception in local file Static Data Provider (" + self.name + ")")
logging.exception(f"Exception in local file Static Data Provider ({self.name})")
def stop(self):
self._stop = True