summaryrefslogtreecommitdiff
path: root/ports/unix/modjni.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/unix/modjni.c')
-rw-r--r--ports/unix/modjni.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/unix/modjni.c b/ports/unix/modjni.c
index 74e7221de..bd151050e 100644
--- a/ports/unix/modjni.c
+++ b/ports/unix/modjni.c
@@ -102,9 +102,9 @@ STATIC void check_exception(void) {
mp_obj_t py_e = new_jobject(exc);
JJ1(ExceptionClear);
if (JJ(IsInstanceOf, exc, IndexException_class)) {
- nlr_raise(mp_obj_new_exception_arg1(&mp_type_IndexError, py_e));
+ mp_raise_type_arg(&mp_type_IndexError, py_e);
}
- nlr_raise(mp_obj_new_exception_arg1(&mp_type_Exception, py_e));
+ mp_raise_type_arg(&mp_type_Exception, py_e);
}
}