Added ZeroDivisionError to float division.

This commit is contained in:
Rachel Dowdall
2014-03-20 22:40:38 +00:00
parent a2f2f734ed
commit 300c8bd4c2
5 changed files with 11 additions and 2 deletions

View File

@@ -93,6 +93,7 @@ MP_DEFINE_EXCEPTION(OverflowError, BaseException)
MP_DEFINE_EXCEPTION(OSError, BaseException)
MP_DEFINE_EXCEPTION(NotImplementedError, BaseException)
MP_DEFINE_EXCEPTION(StopIteration, BaseException)
MP_DEFINE_EXCEPTION(ZeroDivisionError, BaseException)
mp_obj_t mp_obj_new_exception(const mp_obj_type_t *exc_type) {
return mp_obj_new_exception_msg_varg(exc_type, NULL);