Skip to content

Commit 3ccb501

Browse files
clhamjreback
authored andcommitted
CLN: Resubmit of GH14700. Fixes GH14554. Errors other than Indexing…
IdnexError and KeyError now bubble up appropriately. closes pandas-dev#14554 Author: Chris Ham <[email protected]> Closes pandas-dev#14912 from clham/gh14554-b and squashes the following commits: 458c0cc [Chris Ham] CLN: Resubmit of GH14700. Fixes GH14554. Errors other than IndexingError and KeyError now bubble up appropriately.
1 parent 8e630b6 commit 3ccb501

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
@@ -70,6 +70,7 @@ Bug Fixes
7070
- Compat with python 3.6 for Timestamp pickles (:issue:`14689`)
7171
- Bug in resampling a ``DatetimeIndex`` in local TZ, covering a DST change, which would raise ``AmbiguousTimeError`` (:issue:`14682`)
7272

73+
- Bug in indexing that transformed ``RecursionError`` into ``KeyError`` or ``IndexingError`` (:issue:`14554`)
7374

7475

7576
- Bug in ``HDFStore`` when writing a ``MultiIndex`` when using ``data_columns=True`` (:issue:`14435`)

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, IndexingError):
852852
raise self._exception
853853

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

0 commit comments

Comments
 (0)