From ee141f6d37329ad0c68d419598acb710dc3403cf Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 11 Nov 2013 16:59:36 +0100 Subject: [PATCH] fix connect on windows --- lib/interface.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/interface.py b/lib/interface.py index 44de28582..814f5323d 100644 --- a/lib/interface.py +++ b/lib/interface.py @@ -362,7 +362,10 @@ class Interface(threading.Thread): if e.errno != 1: return if is_new: - os.rename(temporary_path, cert_path + '.rej') + rej = cert_path + '.rej' + if os.path.exists(rej): + os.unlink(rej) + os.rename(temporary_path, rej) else: if cert_has_expired(cert_path): print_error("certificate has expired:", cert_path)