Skip to content

Commit 1ecc540

Browse files
committed
BUG: Fixes GH14554
RecursionError no longer forced into KeyError/IndexError
1 parent f26b049 commit 1ecc540

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/source/whatsnew/v0.19.2.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Bug Fixes
2929

3030
- Compat with ``dateutil==2.6.0``; segfault reported in the testing suite (:issue:`14621`)
3131
- Allow ``nanoseconds`` in ``Timestamp.replace`` as a kwarg (:issue:`14621`)
32-
32+
-Bug in indexing that transformed ``RecursionError`` into ``KeyError`` or ``IndexingError`` (:issue:`14554`)
3333

3434

3535

pandas/core/indexing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ def _multi_take(self, tup):
848848
[(a, self._convert_for_reindex(t, axis=o._get_axis_number(a)))
849849
for t, a in zip(tup, o._AXIS_ORDERS)])
850850
return o.reindex(**d)
851-
except:
851+
except (KeyError, IndexError):
852852
raise self._exception
853853

854854
def _convert_for_reindex(self, key, axis=0):

0 commit comments

Comments
 (0)