Skip to content

Commit

Permalink
CLN: catch ValueError instead of Exceeption (#29785)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrockmendel authored and jreback committed Nov 22, 2019
1 parent 11993e0 commit 41e9e9b
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 41e9e9b

Please sign in to comment.