Closed balup34 closed 7 years ago
Python has a built-in exception catch function. Use that to ignore any exceptions. Sorry, I have no way to provide any source as I'm on a phone.
@Aareon Thanks... Actually If you see my code... I am using "raise Exception()". This is python inbuilt function. still I am seeing the issue.
Sorry If I misunderstood your comment. Please guide how to fix this code.
I may be mistaken, but you can use a conditional if else statement to handle any exceptions other than what you're after.
I am using the following pyautoit code to automate the windows app installation.
My requirement is , Script should wait for 30 seconds for a window to appear. If window appears it should raise exception. Else it should go to next action.
Following code raises exception when the window appears. But when window NOT appears its not going to next step. Its throws "AutoItError: timeout on wait for activate window". I don't want to get through this error. Simply its should go to next action.
Code :
Any idea please?