Skip to content

Commit dd535c3

Browse files
committed
fixup! REF: Created pandas.core.arrays
1 parent 4b06ae4 commit dd535c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/arrays/categorical.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ def from_codes(cls, codes, categories, ordered=False):
555555
"""
556556
try:
557557
codes = np.asarray(codes, np.int64)
558-
except:
558+
except (ValueError, TypeError):
559559
raise ValueError(
560560
"codes need to be convertible to an arrays of integers")
561561

0 commit comments

Comments
 (0)