Skip to content

Commit b5f11b4

Browse files
committed
FIX: changed type error to TypeError
instead of NotImplementedError
1 parent eca9548 commit b5f11b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

larray/core/array.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2902,8 +2902,8 @@ def to_labelgroup(key, stack_depth=1):
29022902
elif isinstance(key, (Group, int, str, list, slice)):
29032903
return self.axes._guess_axis(key)
29042904
else:
2905-
key_type = type(key).__name__
2906-
raise NotImplementedError(f"{key} has invalid type ({key_type}) for a group aggregate key")
2905+
raise TypeError(f"{key} has invalid type ({type(key).__name__})"
2906+
f" for a group aggregate key")
29072907

29082908
def standardise_arg(arg, stack_depth=1):
29092909
if self.axes.isaxis(arg):

0 commit comments

Comments
 (0)