Skip to content

Commit 3150ba9

Browse files
committed
catch more
1 parent 5157bd0 commit 3150ba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/indexes/category.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def get_value(self, series, key):
363363
k = self._convert_scalar_indexer(k, kind='getitem')
364364
indexer = self.get_loc(k)
365365
return series.iloc[indexer]
366-
except KeyError:
366+
except (KeyError, TypeError):
367367
pass
368368

369369
# we might be a positional inexer

0 commit comments

Comments
 (0)