summaryrefslogtreecommitdiffstatshomepage
path: root/py/objcomplex.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 /py/objcomplex.c
parent1e70fda69fcb4991eb60ed43e610f664ea1319e6 (diff)
downloadmicropython-48d867b4a68e53901aac87c2ff0f2a7e65f735c7.tar.gz
micropython-48d867b4a68e53901aac87c2ff0f2a7e65f735c7.zip
all: Make more use of mp_raise_{msg,TypeError,ValueError} helpers.
Diffstat (limited to 'py/objcomplex.c')
-rw-r--r--py/objcomplex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objcomplex.c b/py/objcomplex.c
index 5f9183f0e7..e4fbed1e8d 100644
--- a/py/objcomplex.c
+++ b/py/objcomplex.c
@@ -196,7 +196,7 @@ mp_obj_t mp_obj_complex_binary_op(mp_uint_t op, mp_float_t lhs_real, mp_float_t
}
case MP_BINARY_OP_FLOOR_DIVIDE:
case MP_BINARY_OP_INPLACE_FLOOR_DIVIDE:
- nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_TypeError, "can't do truncated division of a complex number"));
+ mp_raise_TypeError("can't do truncated division of a complex number");
case MP_BINARY_OP_TRUE_DIVIDE:
case MP_BINARY_OP_INPLACE_TRUE_DIVIDE: