Beispiel #1
0
def send_notification():
    try:
        email_client = EmailClient()
        email_client.send_notification(notification_email_address)
        email_client.close()
    except:
        print("Could not send success notification")
Beispiel #2
0
def send_alive_notification(tries, failed, exceptions, successes, alive_since,
                            time_alive):
    try:
        email_client = EmailClient()
        email_client.send_alive_notification(notification_email_address, tries,
                                             failed, exceptions, successes,
                                             alive_since, time_alive)
        email_client.close()
    except:
        print("Could not send alive notification")