summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/uart.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 /stmhal/uart.c
parent1e70fda69fcb4991eb60ed43e610f664ea1319e6 (diff)
downloadmicropython-48d867b4a68e53901aac87c2ff0f2a7e65f735c7.tar.gz
micropython-48d867b4a68e53901aac87c2ff0f2a7e65f735c7.zip
all: Make more use of mp_raise_{msg,TypeError,ValueError} helpers.
Diffstat (limited to 'stmhal/uart.c')
-rw-r--r--stmhal/uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/uart.c b/stmhal/uart.c
index b248138049..2d67411b1f 100644
--- a/stmhal/uart.c
+++ b/stmhal/uart.c
@@ -597,7 +597,7 @@ STATIC mp_obj_t pyb_uart_init_helper(pyb_uart_obj_t *self, mp_uint_t n_args, con
} else if (bits == 9) {
init->WordLength = UART_WORDLENGTH_9B;
} else {
- nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError, "unsupported combination of bits and parity"));
+ mp_raise_ValueError("unsupported combination of bits and parity");
}
// stop bits