You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some python package apis require the user the raise specific errors in certain scenarios. For example, Optuna requires the user to conditionally TrialPruned() error. In the current implementation of PythonCall, raising such errors from julia functions does not seem to be possible.
@pyeval `raise optuna.TrialPruned()`
fails with Python: SyntaxError: invalid syntax.
It would be handy to have a function like pyraise to throw such errors manually.
The text was updated successfully, but these errors were encountered:
Some python package apis require the user the raise specific errors in certain scenarios. For example, Optuna requires the user to conditionally
TrialPruned()
error. In the current implementation of PythonCall, raising such errors from julia functions does not seem to be possible.fails with
Python: SyntaxError: invalid syntax
.It would be handy to have a function like
pyraise
to throw such errors manually.The text was updated successfully, but these errors were encountered: