Update backend/tasks/manual/cleanup_orphaned_resources.py

Co-authored-by: Georges-Antoine Assi <3247106+gantoine@users.noreply.github.com>
This commit is contained in:
Zurdi
2025-07-22 21:43:18 +02:00
committed by GitHub
parent b84f096a41
commit 8ffe3afbe6

View File

@@ -21,8 +21,8 @@ class CleanupOrphanedResourcesTask:
removed_count = 0
roms_path = os.path.join(RESOURCES_BASE_PATH, "roms")
if not os.path.exists(RESOURCES_BASE_PATH) or not os.path.exists(roms_path):
roms_resources_path = os.path.join(RESOURCES_BASE_PATH, "roms")
if not os.path.exists(roms_resources_path):
log.info("Resources path does not exist, skipping cleanup")
return