From 70d9972584361468f3362fbc81c83efa67a11d87 Mon Sep 17 00:00:00 2001 From: kaiyou Date: Sun, 10 Sep 2017 21:05:54 +0200 Subject: [PATCH] Check if a certificate already exists before trying to read it --- admin/mailu/tlstasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/mailu/tlstasks.py b/admin/mailu/tlstasks.py index dc139c7e..0a0c9f2a 100644 --- a/admin/mailu/tlstasks.py +++ b/admin/mailu/tlstasks.py @@ -28,7 +28,7 @@ def install_certs(domain): else: print("Could not find the proper certificate from traefik") return - if os.path.join(cert_path): + if os.path.exists(cert_path): with open(cert_path, "rb") as handler: if handler.read() == cert: return