fix syntax

This commit is contained in:
rootzoll
2020-07-14 17:49:50 +02:00
parent e08e3165c2
commit 9871c32faf

View File

@@ -168,7 +168,7 @@ def subscriptionsCancel(id):
if removedCert:
acmeResult=subprocess.Popen(["/home/admin/config.scripts/bonus.letsencrypt.sh", "remove-cert", removedCert['id'], removedCert['target']], stdout=subprocess.PIPE)
out, err = acmeResult.communicate()
if acmeResult.find("error=") > -1:
if out.find("error=") > -1:
time.sleep(6)
raise BlitzError("letsancrypt acme failed", acmeResult)