mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Change memory exception to MemoryError
This commit is contained in:
parent
b5e90c4c8d
commit
a26f752285
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
void *xalloc_fail()
|
void *xalloc_fail()
|
||||||
{
|
{
|
||||||
nlr_raise(mp_obj_new_exception_msg(&mp_type_OSError, "Out of Memory!!"));
|
nlr_raise(mp_obj_new_exception_msg(&mp_type_MemoryError, "Out of Memory!!"));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user