Skip to content

Commit 4844ac1

Browse files
committed
TST: addtl correction w.r.t. #12530
1 parent ffb6eed commit 4844ac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/indexing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1748,7 +1748,7 @@ def convert_to_index_sliceable(obj, key):
17481748
if idx.is_all_dates:
17491749
try:
17501750
return idx._get_string_slice(key)
1751-
except (ValueError, NotImplementedError):
1751+
except (KeyError, ValueError, NotImplementedError):
17521752
return None
17531753

17541754
return None

0 commit comments

Comments
 (0)