X-Git-Url: https://pwan.org/git/?p=certmaster.git;a=blobdiff_plain;f=certmaster%2Futils.py;h=968d6978ed9f074a3a3f5bf72867972b35f6294b;hp=1bf931e9703dae2452ce3631db9cc8fbde1a8019;hb=809409b251eab13be2999e30460d01721423d7b3;hpb=31a4be83d7061f2f431ecad56153991113ecbc68 diff --git a/certmaster/utils.py b/certmaster/utils.py index 1bf931e..968d697 100644 --- a/certmaster/utils.py +++ b/certmaster/utils.py @@ -172,7 +172,7 @@ def create_minion_keys(hostname=None): # print "DEBUG: submitting CSR to certmaster: %s" % master_uri log.debug("submitting CSR: %s to certmaster %s" % (csr_file, master_uri)) result, cert_string, ca_cert_string = submit_csr_to_master(csr_file, master_uri) - except socket.gaierror, e: + except socket.error, e: log.warning("Could not locate certmaster at %s" % master_uri) # logging here would be nice