Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit d5b4f22

Browse files
authored
modutimeq.c: modify mod_utimeq_heappop() to raise a valid TypeError
1 parent 3032601 commit d5b4f22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extmod/modutimeq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ STATIC mp_obj_t mod_utimeq_heappop(mp_obj_t heap_in, mp_obj_t list_ref) {
146146
}
147147
mp_obj_list_t *ret = MP_OBJ_TO_PTR(list_ref);
148148
if (!MP_OBJ_IS_TYPE(list_ref, &mp_type_list) || ret->len < 3) {
149-
mp_raise_TypeError(NULL);
149+
mp_raise_TypeError("Not a list or length is less than 3!");
150150
}
151151

152152
struct qentry *item = &heap->items[0];

0 commit comments

Comments
 (0)