Skip to content

Commit 6e7e960

Browse files
committed
use repr for invalid key so that strings are quoted
1 parent 9580440 commit 6e7e960

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

larray/core/axis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2609,7 +2609,7 @@ def _translate_axis_key_chunk(self, axis_key):
26092609
except KeyError:
26102610
continue
26112611
if not valid_axes:
2612-
raise ValueError("%s is not a valid label for any axis" % axis_key)
2612+
raise ValueError("%r is not a valid label for any axis" % axis_key)
26132613
elif len(valid_axes) > 1:
26142614
# TODO: make an AxisCollection.display_name(axis) method out of this
26152615
# valid_axes = ', '.join(self.display_name(axis) for a in valid_axes)

0 commit comments

Comments
 (0)