Fixing issue with expiration emails not being sent

This commit is contained in:
kevgliss 2015-09-04 09:24:55 -07:00
parent c182055dbe
commit 160eaa6901
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,6 @@
""" """
import ssl import ssl
import socket
import arrow import arrow
@ -114,8 +113,9 @@ def _get_domain_certificate(name):
try: try:
pub_key = ssl.get_server_certificate((name, 443)) pub_key = ssl.get_server_certificate((name, 443))
return cert_service.find_duplicates(pub_key.strip()) return cert_service.find_duplicates(pub_key.strip())
except socket.gaierror as e: except Exception as e:
current_app.logger.info(str(e)) current_app.logger.info(str(e))
return []
def _find_superseded(cert): def _find_superseded(cert):