mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10:14 +01:00
Added ZeroDivisionError to float division.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user