File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ Q(StopIteration)
3131
3232Q (AssertionError )
3333Q (AttributeError )
34+ Q (ImportError )
3435Q (IndentationError )
3536Q (IndexError )
3637Q (KeyError )
Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ void rt_init(void) {
9292
9393 // built-in exceptions (TODO, make these proper classes, and const if possible)
9494 mp_map_add_qstr (& map_builtins , MP_QSTR_AttributeError , mp_obj_new_exception (MP_QSTR_AttributeError ));
95+ mp_map_add_qstr (& map_builtins , MP_QSTR_ImportError , mp_obj_new_exception (MP_QSTR_ImportError ));
9596 mp_map_add_qstr (& map_builtins , MP_QSTR_IndexError , mp_obj_new_exception (MP_QSTR_IndexError ));
9697 mp_map_add_qstr (& map_builtins , MP_QSTR_KeyError , mp_obj_new_exception (MP_QSTR_KeyError ));
9798 mp_map_add_qstr (& map_builtins , MP_QSTR_NameError , mp_obj_new_exception (MP_QSTR_NameError ));
You can’t perform that action at this time.
0 commit comments