fix: order of operations

This commit is contained in:
Benexl
2025-12-01 17:25:21 +03:00
parent 76c1dcd5ac
commit f27c0b8548

View File

@@ -393,7 +393,7 @@ class EpisodeCacheWorker(ManagedBackgroundWorker):
def _save_info_text(self, info_text: str, hash_id: str) -> None:
"""Save episode info text to cache."""
try:
info_path = self.info_cache_dir / hash_id + ".py"
info_path = self.info_cache_dir / (hash_id + ".py")
with AtomicWriter(info_path) as f:
f.write(info_text)
logger.debug(f"Successfully cached episode info: {hash_id}")