Commit 7cd54d79 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

Add ImportError.

parent 00c0b8a9
......@@ -31,6 +31,7 @@ Q(StopIteration)
Q(AssertionError)
Q(AttributeError)
Q(ImportError)
Q(IndentationError)
Q(IndexError)
Q(KeyError)
......
......@@ -92,6 +92,7 @@ void rt_init(void) {
// built-in exceptions (TODO, make these proper classes, and const if possible)
mp_map_add_qstr(&map_builtins, MP_QSTR_AttributeError, mp_obj_new_exception(MP_QSTR_AttributeError));
mp_map_add_qstr(&map_builtins, MP_QSTR_ImportError, mp_obj_new_exception(MP_QSTR_ImportError));
mp_map_add_qstr(&map_builtins, MP_QSTR_IndexError, mp_obj_new_exception(MP_QSTR_IndexError));
mp_map_add_qstr(&map_builtins, MP_QSTR_KeyError, mp_obj_new_exception(MP_QSTR_KeyError));
mp_map_add_qstr(&map_builtins, MP_QSTR_NameError, mp_obj_new_exception(MP_QSTR_NameError));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment