Skip to content

Commit 0369704

Browse files
committed
added KeyError and Exception blocks
1 parent ff3a81f commit 0369704

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/indexing.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,8 @@ def _getitem_lowerdim(self, tup):
982982
self._get_label(tup, axis=self.axis)
983983
except KeyError:
984984
return self._get_label(tup, axis=self.axis)
985-
raise IndexingError("Too many indexers. handle elsewhere")
985+
except Exception:
986+
raise IndexingError("Too many indexers. handle elsewhere")
986987

987988
# to avoid wasted computation
988989
# df.ix[d1:d2, 0] -> columns first (True)

0 commit comments

Comments
 (0)