Skip to content

Commit 5a347a9

Browse files
committed
add warning
1 parent 524195c commit 5a347a9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bigframes/session/anonymous_dataset.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,11 @@ def _cleanup_old_udfs(self):
162162
not_found_ok=True,
163163
retry=api_core_retry.Retry(timeout=0),
164164
)
165-
except Exception:
166-
pass
165+
except Exception as e:
166+
msg = bfe.format_message(
167+
f"Unable to clean this old UDF '{routine.reference}': {e}"
168+
)
169+
warnings.warn(msg, category=bfe.CleanupFailedWarning)
167170

168171
def close(self):
169172
"""Delete tables that were created with this session's session_id."""

0 commit comments

Comments
 (0)