Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SYS_EXC_INFO for micropython to handle exceptions #96

Merged
1 commit merged into from
Mar 4, 2022
Merged

Add SYS_EXC_INFO for micropython to handle exceptions #96

1 commit merged into from
Mar 4, 2022

Conversation

odudex
Copy link
Member

@odudex odudex commented Mar 4, 2022

logging.py uses sys.exc_info() in exception handling, for that MICROPY_PY_SYS_EXC_INFO needs to be enabled on micropython port, otherwise system may crash.

@ghost
Copy link

ghost commented Mar 4, 2022

Thanks! (By the way, the comment-coverage test failing was unrelated to your change)

@ghost ghost merged commit ed00b11 into selfcustody:main Mar 4, 2022
logging.py uses sys.exc_info() in exception handling, for that MICROPY_PY_SYS_EXC_INFO needs to be enabled on micropython port, otherwise system may crash.
@odudex
Copy link
Member Author

odudex commented Mar 4, 2022

Your welcome! (One of the motivation of this tiny PR was check if it would succeed, as I'm trying to make cleaner contributions)

@ghost
Copy link

ghost commented Mar 7, 2022

@odudex
Update:
I'm currently working on breaking out my changes to MaixPy into their own repo and submodule (to resolve #78), and I just noticed that I already made this change within the micropython core config here:
https://github.com/jreesun/krux/blob/main/firmware/MaixPy/components/micropython/core/py/mpconfig.h#L1153

So, I think this change may be redundant. Did you run into an issue due to it not being in mpconfigport.h? If not, I may remove this change from my fork if it's unnecessary.

@odudex
Copy link
Member Author

odudex commented Mar 7, 2022 via email

@ghost
Copy link

ghost commented Mar 7, 2022

Okay, good to know. I'll leave it as-is then, thank you!

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant