summaryrefslogtreecommitdiff
path: root/py/objslice.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/objslice.c')
-rw-r--r--py/objslice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objslice.c b/py/objslice.c
index d1c23cbf2..290c29150 100644
--- a/py/objslice.c
+++ b/py/objslice.c
@@ -124,7 +124,7 @@ void mp_obj_slice_indices(mp_obj_t self_in, mp_int_t length, mp_bound_slice_t *r
} else {
step = mp_obj_get_int(self->step);
if (step == 0) {
- mp_raise_ValueError("slice step cannot be zero");
+ mp_raise_ValueError(MP_ERROR_TEXT("slice step cannot be zero"));
}
}