Problem performs try / execpt

Asked by Eduardo

when trying to run a script that give the error except the code is not executed

#code
class Login(object):

    def LogarFinanc(self):

            try:

                type("d",Key.META)
                doubleClick(Pattern("1429883922773.png").similar(0.91).targetOffset(0,-10))
                wait("1429884251368.png",45)
                click(Pattern("1429884538249.png").targetOffset(0,16))

                paste("AUTOMATO")
                type(Key.TAB)
                paste("PIRAUT60400")
                type(Key.TAB)
                paste("pcg2014auto")
                click(Pattern("1429885300365.png").similar(0.80))
            except:
                print "Erro ao logar"

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Eduardo
Solved:
Last query:
Last reply:
Revision history for this message
Eduardo (edu-10agro) said :
#1

pegou!