Skip to content

Commit 00f203e

Browse files
committed
remove unneeded except
1 parent 0881bf6 commit 00f203e

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

bigframes/display/anywidget.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from typing import Any, cast, Dict, Iterator, List, Optional, Type
2222
import uuid
2323

24-
import google.api_core.exceptions
2524
import pandas as pd
2625

2726
import bigframes
@@ -168,12 +167,7 @@ def _get_next_batch(self) -> bool:
168167
batch = next(iterator)
169168
self._cached_batches.append(batch)
170169
return True
171-
except (
172-
StopIteration,
173-
google.api_core.exceptions.GoogleAPICallError,
174-
TypeError,
175-
ValueError,
176-
) as e:
170+
except StopIteration as e:
177171
self._all_data_loaded = True
178172
if not isinstance(e, StopIteration):
179173
# If we fail to get a batch, assume no more data is available.

tests/benchmark/read_gbq_colab/filter_output.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def filter_output(
3737
# Simulate the user filtering by a column and visualizing those results
3838
df_filtered = df[df["col_bool_0"]]
3939
batches_filtered = df_filtered.to_pandas_batches(page_size=PAGE_SIZE)
40+
assert batches_filtered.total_rows >= 0
4041

4142
# It's possible we don't have any pages at all, since we filtered out all
4243
# matching rows.

0 commit comments

Comments
 (0)