diff --git a/GeoHealthCheck/notifications.py b/GeoHealthCheck/notifications.py index 82547169..92fb63d1 100644 --- a/GeoHealthCheck/notifications.py +++ b/GeoHealthCheck/notifications.py @@ -102,8 +102,6 @@ def do_email(config, resource, run, status_changed, result): try: if config['GHC_SMTP']['tls']: server.starttls() - else: - server.connect() except Exception, err: LOGGER.exception("Cannot connect to smtp: %s[:%s]: %s", config['GHC_SMTP']['server'],