Skip to content

Commit

Permalink
CLN: catch ValueError instead of Exceeption (pandas-dev#29785)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrockmendel authored and proost committed Dec 19, 2019
1 parent 2d4cebb commit a3b0a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/io/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ def _parse(flavor, io, match, attrs, encoding, displayed_only, **kwargs):

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

0 comments on commit a3b0a3d

Please sign in to comment.