← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #288553]: Taking a printscreen if an error occurs

 

Question #288553 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/288553

MinisterT gave more information on the question:
I just tried

def func1():
	except FindFailed:
    	type(Key.PRINTSCREEN)
try:
	wait("image.png")
	func1()


but I get this error

[error] script [ LogTestDocx ] stopped with error in line 2 at column 1
[error] SyntaxError ( "required )


Line 2 is
	except FindFailed:

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.