File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ STATIC mp_obj_t mod_random_choice(mp_obj_t seq) {
122
122
if (get_random_choice (&marker_len, &marker_result)) {
123
123
if (len != marker_len) {
124
124
// Report failure, but continue to use random anyway.
125
- set_marker_failure_event (" Incorrect number of items passed to random.choice." );
125
+ set_marker_failure_event (" random " , " Incorrect number of items passed to random.choice." );
126
126
} else {
127
127
// The marker can also optionally set a forced result
128
128
// which is the repr() of the expected item.
@@ -143,7 +143,7 @@ STATIC mp_obj_t mod_random_choice(mp_obj_t seq) {
143
143
++i;
144
144
}
145
145
if (index < 0 ) {
146
- set_marker_failure_event (" Item missing from random.choice." );
146
+ set_marker_failure_event (" random " , " Item missing from random.choice." );
147
147
index = randbelow (len);
148
148
}
149
149
return mp_obj_subscr (seq, mp_obj_new_int (index), MP_OBJ_SENTINEL);
You can’t perform that action at this time.
0 commit comments