1
0

fix connect on windows

This commit is contained in:
ThomasV
2013-11-11 16:59:36 +01:00
parent 2321cb9bb3
commit ee141f6d37

View File

@@ -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)