Skip to content

Commit 41e9e9b

Browse files
jbrockmendeljreback
authored andcommitted
CLN: catch ValueError instead of Exceeption (#29785)
1 parent 11993e0 commit 41e9e9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/html.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ def _parse(flavor, io, match, attrs, encoding, displayed_only, **kwargs):
896896

897897
try:
898898
tables = p.parse_tables()
899-
except Exception as caught:
899+
except ValueError as caught:
900900
# if `io` is an io-like object, check if it's seekable
901901
# and try to rewind it before trying the next parser
902902
if hasattr(io, "seekable") and io.seekable():

0 commit comments

Comments
 (0)