Skip to content

Commit b0cccb3

Browse files
committed
Fix resource cleanup
1 parent 3c866fa commit b0cccb3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gefapi/tasks/docker_resource_cleanup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ def cleanup_docker_build_cache(self):
110110
len(caches_deleted),
111111
cache_space,
112112
)
113-
except AttributeError:
114-
# Fallback: If _post is not available, try using requests directly
113+
except Exception as inner_error:
114+
# Fallback: If build cache prune fails, try using containers prune
115115
logger.warning(
116-
"[TASK]: Low-level API not available for build prune, "
116+
f"[TASK]: Failed to prune build cache ({inner_error}), "
117117
"trying alternative method..."
118118
)
119119

0 commit comments

Comments
 (0)