diff --git a/src/yunohost/certificate.py b/src/yunohost/certificate.py index b91bc74b6..a53f5f669 100644 --- a/src/yunohost/certificate.py +++ b/src/yunohost/certificate.py @@ -820,9 +820,11 @@ def _domain_is_accessible_through_HTTP(ip, domain): def _domain_is_resolved_locally(public_ip, domain): try: ip = socket.gethostbyname(domain) - except socket.error: + except socket.error as e: + logger.debug("Couldn't get domain '%s' ip because: %s" % (domain, e)) return False + logger.debug("Domain '%s' ip is %s, except it to be 127.0.0.1 or %s" % (domain, public_ip)) return ip in ["127.0.0.1", public_ip]