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
Currently, if there is an exception inside a function called with call_python(), it ends up being consumed by dukpy and gets translated into a dukpy.JSRuntimeError.
However, dukpy itself seems to have all the necessary information to just rethrow this exception to the caller of evaljs(), which would be more useful for error handling. If preserving existing behaviour is necessary, maybe it could be an optional argument to evaljs() that is set to False by default.
Is this something that could be added?
The text was updated successfully, but these errors were encountered:
This is more of a feature request.
Currently, if there is an exception inside a function called with
call_python()
, it ends up being consumed by dukpy and gets translated into adukpy.JSRuntimeError
.However, dukpy itself seems to have all the necessary information to just rethrow this exception to the caller of
evaljs()
, which would be more useful for error handling. If preserving existing behaviour is necessary, maybe it could be an optional argument toevaljs()
that is set toFalse
by default.Is this something that could be added?
The text was updated successfully, but these errors were encountered: