From 384c7bc608493bb191b4167262a9bd90cc1baf80 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 11 Jun 2020 22:48:41 +0200 Subject: [PATCH] Fix error / debug message when diagnosis ain't happy when renewing certs --- src/yunohost/certificate.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/yunohost/certificate.py b/src/yunohost/certificate.py index 4b5adb754..882e37863 100644 --- a/src/yunohost/certificate.py +++ b/src/yunohost/certificate.py @@ -369,12 +369,11 @@ def certificate_renew(domain_list, force=False, no_checks=False, email=False, st if not no_checks: try: _check_domain_is_ready_for_ACME(domain) - except: - msg = "Certificate renewing for %s failed !" % (domain) - logger.error(msg) + except Exception as e: + logger.error(e) if email: logger.error("Sending email with details to root ...") - _email_renewing_failed(domain, msg) + _email_renewing_failed(domain, e) continue logger.info(