From 48d867b4a68e53901aac87c2ff0f2a7e65f735c7 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 15 Jun 2017 11:54:41 +1000 Subject: all: Make more use of mp_raise_{msg,TypeError,ValueError} helpers. --- extmod/modframebuf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'extmod/modframebuf.c') diff --git a/extmod/modframebuf.c b/extmod/modframebuf.c index a073926754..062a63c3b2 100644 --- a/extmod/modframebuf.c +++ b/extmod/modframebuf.c @@ -244,8 +244,7 @@ STATIC mp_obj_t framebuf_make_new(const mp_obj_type_t *type, size_t n_args, size o->stride = (o->stride + 7) & ~7; break; default: - nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError, - "invalid format")); + mp_raise_ValueError("invalid format"); } return MP_OBJ_FROM_PTR(o); -- cgit v1.2.3