Skip to content

Commit 8e9f8ee

Browse files
committed
add ValueError exception back
1 parent 94c162c commit 8e9f8ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bigframes/display/anywidget.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ def _get_next_batch(self) -> bool:
167167
batch = next(iterator)
168168
self._cached_batches.append(batch)
169169
return True
170-
except StopIteration as e:
170+
except (StopIteration, ValueError) as e:
171171
self._all_data_loaded = True
172-
if not isinstance(e, StopIteration):
172+
if isinstance(e, ValueError):
173173
# If we fail to get a batch, assume no more data is available.
174174
self.row_count = 0
175175
return False

0 commit comments

Comments
 (0)