Skip to content

Commit 8daee37

Browse files
committed
fix retry
1 parent c0d03e8 commit 8daee37

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
@@ -18,6 +18,7 @@
1818
import uuid
1919
import warnings
2020

21+
from google.api_core import retry as api_core_retry
2122
import google.cloud.bigquery as bigquery
2223

2324
from bigframes import constants
@@ -157,9 +158,11 @@ def _cleanup_old_udfs(self):
157158
):
158159
try:
159160
self.bqclient.delete_routine(
160-
routine.reference, not_found_ok=True, retry=None
161+
routine.reference,
162+
not_found_ok=True,
163+
retry=api_core_retry.Retry(timeout=0),
161164
)
162-
except Exception as e:
165+
except Exception:
163166
pass
164167

165168
def close(self):

0 commit comments

Comments
 (0)