commit f3763b45afae101d9c7dd46a258462e59cf04acc
parent c097b9a5303bdaf90a5c4d04ce80534257c5b278
Author: ThomasV <thomasv@gitorious>
Date: Wed, 2 Oct 2013 03:33:45 +0200
fix
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git 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: