Skip to content

Commit a3b0a3d

Browse files
jbrockmendelproost
authored andcommitted
CLN: catch ValueError instead of Exceeption (pandas-dev#29785)
1 parent 2d4cebb commit a3b0a3d

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)