1 parent fa3b895 commit e8432b3Copy full SHA for e8432b3
2 files changed
py/qstrdefs.h
@@ -385,6 +385,7 @@ Q(qstr_info)
385
#if MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF && (MICROPY_EMERGENCY_EXCEPTION_BUF_SIZE == 0)
386
Q(alloc_emergency_exception_buf)
387
#endif
388
+Q(maximum recursion depth exceeded)
389
390
Q(<module>)
391
Q(<lambda>)
py/stackctrl.c
@@ -48,7 +48,8 @@ void mp_stack_set_limit(mp_uint_t limit) {
48
49
void mp_stack_check(void) {
50
if (mp_stack_usage() >= MP_STATE_VM(stack_limit)) {
51
- nlr_raise(mp_obj_new_exception_msg(&mp_type_RuntimeError, "maximum recursion depth exceeded"));
+ nlr_raise(mp_obj_new_exception_arg1(&mp_type_RuntimeError,
52
+ MP_OBJ_NEW_QSTR(MP_QSTR_maximum_space_recursion_space_depth_space_exceeded)));
53
}
54
55
0 commit comments