Skip to content

Conversation

@AlexCatarino
Copy link
Member

No description provided.

@AlexCatarino AlexCatarino merged commit 6c2c798 into master Jul 13, 2018
typeType = typeof(Type);

IntPtr decimalMod = Runtime.PyImport_ImportModule("decimal");
if (decimalMod == null) throw new PythonException();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this throw a more meaningful error? Can you include any information in the exception?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. PythonException doesn't accept any arguments.
When it is thrown, it looks for the exception hanging on python environment and display it.
It is a shame, because we could attach a custom message...

@AlexCatarino AlexCatarino deleted the lean branch August 24, 2018 09:27
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.

3 participants