aboutsummaryrefslogtreecommitdiff
path: root/extmod/modframebuf.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-06-15 11:54:41 +1000
committerDamien George <damien.p.george@gmail.com>2017-06-15 11:54:41 +1000
commit48d867b4a68e53901aac87c2ff0f2a7e65f735c7 (patch)
tree178bfc0dc13bcb3b9d77c8a99652e9a9dc057e7d /extmod/modframebuf.c
parent1e70fda69fcb4991eb60ed43e610f664ea1319e6 (diff)
all: Make more use of mp_raise_{msg,TypeError,ValueError} helpers.
Diffstat (limited to 'extmod/modframebuf.c')
-rw-r--r--extmod/modframebuf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/extmod/modframebuf.c b/extmod/modframebuf.c
index a07392675..062a63c3b 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);