From f36ab8ef403973b112e110214c0fb9103bfe1a66 Mon Sep 17 00:00:00 2001 From: Andrew Ferlitsch Date: Thu, 30 Nov 2023 09:08:43 -0800 Subject: [PATCH] fix: online FS (#2558) --- .cloud-build/cleanup/cleanup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.cloud-build/cleanup/cleanup.py b/.cloud-build/cleanup/cleanup.py index e82de544b..d5e5680f8 100644 --- a/.cloud-build/cleanup/cleanup.py +++ b/.cloud-build/cleanup/cleanup.py @@ -36,7 +36,10 @@ def run_cleanup_managers(managers: List[ResourceCleanupManager], is_dry_run: boo print(f"Fetching {type_name}'s...") resources = manager.list() - print(f"Found {len(resources)} {type_name}'s") + try: + print(f"Found {len(resources)} {type_name}'s") + except Exception as e: + print(f"{type_name} {e}") for resource in resources: try: if not manager.is_deletable(resource):