diff options
Diffstat (limited to 'py/objexcept.c')
-rw-r--r-- | py/objexcept.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/py/objexcept.c b/py/objexcept.c index 4abc624376..e735852c37 100644 --- a/py/objexcept.c +++ b/py/objexcept.c @@ -84,3 +84,9 @@ mp_obj_t mp_obj_new_exception_msg_2_args(qstr id, const char *fmt, const char *a o->args[2] = a2; return o; } + +qstr mp_obj_exception_get_type(mp_obj_t self_in) { + assert(MP_OBJ_IS_TYPE(self_in, &exception_type)); + mp_obj_exception_t *self = self_in; + return self->id; +} |