Hello,
I am working on an automation program that creates user accounts for a third-party website my company uses. I invoked a python script that checks / pulls AD for the user’s information to move into the website. This portion works perfectly. I am wanting to implement a try/catch block for the python section so if the user Samaccount is not found that it will display a message letting the admin know that it could not find the users account and terminate the program. I have implemented the try catch (pictured below) but it is not displaying the message when a incorrect user is entered. Is what I am trying to do even possible?
Try Block
Catch Block
Finally block
Output I get when it throws the error