diff options
author | Rachel Dowdall <rjdowdall@gmail.com> | 2014-03-20 22:40:38 +0000 |
---|---|---|
committer | Rachel Dowdall <rjdowdall@gmail.com> | 2014-03-20 22:40:38 +0000 |
commit | 300c8bd4c2c0c6d626a6aaeb873c22a8f8b9fc3f (patch) | |
tree | 96a2e445c19b7535a708b89aeddc378727366148 /py/objexcept.c | |
parent | a2f2f734ed5ee1294a44592448e5b0f45a12e254 (diff) |
Added ZeroDivisionError to float division.
Diffstat (limited to 'py/objexcept.c')
-rw-r--r-- | py/objexcept.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/objexcept.c b/py/objexcept.c index 11177724d..3f636ffc6 100644 --- a/py/objexcept.c +++ b/py/objexcept.c @@ -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); |