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

Print out exceptions when initializing Python #1451

Closed
LostDragonist opened this issue Mar 3, 2021 · 2 comments · Fixed by ModOrganizer2/modorganizer-plugin_python#93
Closed
Labels
Dev Ticket Reserved for development tasks management.

Comments

@LostDragonist
Copy link
Contributor

MO 2.4.0
An exception being thrown during initializing python only outputs this incredibly helpful message:

[2021-03-03 18:14:44.848 E] [pythonrunner.cpp:1339] An unexpected C++ exception was thrown in python code

https://github.com/william76/boost-python-tutorial/blob/master/part2/handle_error.cpp shows how to hopefully get more information about these kinds of exceptions... I think? The repo itself doesn't have a license though it's for a publicly available tutorial.

@LostDragonist LostDragonist added the Dev Ticket Reserved for development tasks management. label Mar 3, 2021
@Holt59
Copy link
Member

Holt59 commented Mar 3, 2021

That's already done. If the error is not converted it's usually because it's being thrown before everything else is set up.

@Holt59
Copy link
Member

Holt59 commented Mar 3, 2021

To be precise, if the exception happens when initializing a Python plugin, the "conversion" is done. If the conversion is not done it means the exception happens during or before the initialization of mobase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dev Ticket Reserved for development tasks management.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants