Python exceptions
Python exceptions
I call OAD methods in Zen blue from Python. How can I get feedback if a method failed (e.g. .Acquisition.FindSurface() did not find surface; Acquisition.RecallFocus() was called before focus was set)? I found a presentation by Sebastian Rhode at http://slides.com/sebastianrhode/tools- ... roscopy#/1 that uses try/exception statements, but I do not get an exception in case of a failure.
Dear wiegraebe,
further investigation showed that both functions Acquisition.FindSurface() and Acquisition.RecallFocus() just throw an exception to the OAD Interface when they cannot be started. Otherwise, an exception is thrown but does not reach the OAD Interface.
We have the intention to refactor the code for the next ZEN release so that the exception also reaches the OAD Interface.
further investigation showed that both functions Acquisition.FindSurface() and Acquisition.RecallFocus() just throw an exception to the OAD Interface when they cannot be started. Otherwise, an exception is thrown but does not reach the OAD Interface.
We have the intention to refactor the code for the next ZEN release so that the exception also reaches the OAD Interface.
-
- Posts: 1
- Joined: Fri Oct 20, 2023 5:20 am
Re: Python exceptions
This unique game has piqued the interest of many people. With its unique game experience and innovative game atmosphere, scribble io is a fantastic way for you and your friends to pass the time.