diff --git a/lib/interface.py b/lib/interface.py index de3963f7..b8a7ad7c 100644 --- a/lib/interface.py +++ b/lib/interface.py @@ -308,9 +308,8 @@ class Interface(threading.Thread): do_handshake_on_connect=True) except ssl.SSLError, e: print_error("SSL error:", self.host, e) - # delete the certificate so we will download a new one - if is_new and e.errno == 1: + if is_new: os.unlink(cert_path) return except: