From edde5e4043382778346ac445c924ec08fb9690bc Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Mon, 23 Sep 2019 01:16:52 +0200 Subject: [PATCH] Refactor acme validation --- wo/core/acme.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wo/core/acme.py b/wo/core/acme.py index 4acbaa7..bc42ee3 100644 --- a/wo/core/acme.py +++ b/wo/core/acme.py @@ -30,12 +30,10 @@ class WOAcme: Log.info(self, "Validation mode : {0}".format(validation_mode)) Log.wait(self, "Issuing SSL cert with acme.sh") - try: - WOShellExec.cmd_exec( + if not WOShellExec.cmd_exec( self, "{0} ".format(wo_acme_exec) + "--issue -d '{0}' {1} -k {2} -f" - .format(all_domains, acme_mode, keylenght)) - except Exception as e: + .format(all_domains, acme_mode, keylenght)): Log.failed(self, "Issuing SSL cert with acme.sh") Log.debug(self, str(e)) if acmedata['dns'] is True: