Assertions in unix/modffi should raise a ValueError instead #18921
luizfeliperj
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I believe that these lines:
micropython/ports/unix/modffi.c
Line 489 in 4625f97
and
micropython/ports/unix/modffi.c
Line 490 in 4625f97
should raise a ValueError instead of an assertion.
They are only checked on debug builds of micropython for unix and generates a core dump when tripped. It is really difficult to find out the error when this happens, raising a ValueError instead would print a stack trace with more debug information.
Beta Was this translation helpful? Give feedback.
All reactions