Skip to content

Commit 6cf7c68

Browse files
authored
add IndexError to the types os possible read_hdf errors
fixes #52781
1 parent 52e2289 commit 6cf7c68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/pytables.py

+1-1
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):
458+
except (ValueError, TypeError, KeyError, IndexError):
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)