Skip to content

Commit a70fd01

Browse files
committed
coalesce KeyError and IndexError into LookupError
1 parent a504f4f commit a70fd01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/pytables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ def read_hdf(
455455
chunksize=chunksize,
456456
auto_close=auto_close,
457457
)
458-
except (ValueError, TypeError, KeyError, IndexError):
458+
except (ValueError, TypeError, LookupError):
459459
if not isinstance(path_or_buf, HDFStore):
460460
# if there is an error, close the store if we opened it.
461461
with suppress(AttributeError):

0 commit comments

Comments
 (0)