diff --git a/backend/tasks/manual/cleanup_orphaned_resources.py b/backend/tasks/manual/cleanup_orphaned_resources.py index 74a29bd45..2676b3d1a 100644 --- a/backend/tasks/manual/cleanup_orphaned_resources.py +++ b/backend/tasks/manual/cleanup_orphaned_resources.py @@ -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