summaryrefslogtreecommitdiffstatshomepage
path: root/extmod/moduheapq.c
diff options
context:
space:
mode:
Diffstat (limited to 'extmod/moduheapq.c')
-rw-r--r--extmod/moduheapq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/moduheapq.c b/extmod/moduheapq.c
index e6e417d2bc..4a620bad81 100644
--- a/extmod/moduheapq.c
+++ b/extmod/moduheapq.c
@@ -35,7 +35,7 @@
STATIC mp_obj_list_t *get_heap(mp_obj_t heap_in) {
if (!MP_OBJ_IS_TYPE(heap_in, &mp_type_list)) {
- nlr_raise(mp_obj_new_exception_msg(&mp_type_TypeError, "heap must be a list"));
+ mp_raise_TypeError("heap must be a list");
}
return MP_OBJ_TO_PTR(heap_in);
}