diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-02-04 03:33:55 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-02-04 03:33:55 +0200 |
commit | 7cd54d79db8abd4bd5c3a964f8096de4f7734b23 (patch) | |
tree | e90cb3447b9ca785e431eb53ef6deadceaf6225a /py/runtime.c | |
parent | 00c0b8a989ae54f4466d15b78a2e8729baf441ef (diff) |
Add ImportError.
Diffstat (limited to 'py/runtime.c')
-rw-r--r-- | py/runtime.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/runtime.c b/py/runtime.c index 74c55ea6c..0f2727327 100644 --- a/py/runtime.c +++ b/py/runtime.c @@ -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)); |