Question #194222 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/194222
Status: Open => Answered
Roman Podolyan proposed the following answer:
When I read log in IDE console, there is always line number if image not
found (or other error happened) and app exited.
Example:
[error] An error occurs at line 381
[error] Error message: Traceback (most recent call last):
File
"C:\Users\RPODOL~1.KIE\AppData\Local\Temp\sikuli-tmp8059622772916110289.py",
line 381, in
on_start() #first sequence of start operations
File
"C:\Users\RPODOL~1.KIE\AppData\Local\Temp\sikuli-tmp8059622772916110289.py",
line 59, in on_start
>From my and the Sikuli IDE perspective, code you wrote is just unneeded.
Or you can go for try: .... except: ... blocks, see examples here:
http://sikuli.org/docx/region.html#exception-findfailed
using that technique you can output at least problematic image name, I
think. But if running a script from IDE, to know error line you have
just to read the console.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp