Skip to content

Commit ef115bd

Browse files
committed
closes GH14554, RecursionError nolonger coerced into a KeyError or IndexError
1 parent f26b049 commit ef115bd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/source/whatsnew/v0.19.2.txt

+1
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,4 @@ Bug Fixes
6464

6565

6666
- Explicit check in ``to_stata`` and ``StataWriter`` for out-of-range values when writing doubles (:issue:`14618`)
67+
- Bug in indexing causing RecursionError to be coerced into a KeyError or IndexError. (:issue:`14554`)

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)