Catch DB node executing error variable even on success


I am trying to catch error and send an email in case DB connection fails. If it is success, flow has to continue and email should NOT be sent. But even on success I am receiving email notification and error node(variable out put) is executed. My flow looks like in attachment. Am I configuring it wrong? Pls help.



Dear Kavita

The outport will always be active. You need to check if the variable is not none and in this case only sent the email notification.

Best, Iris