mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix error / debug message when diagnosis ain't happy when renewing certs
This commit is contained in:
parent
6defbfdbac
commit
384c7bc608
1 changed files with 3 additions and 4 deletions
|
@ -369,12 +369,11 @@ def certificate_renew(domain_list, force=False, no_checks=False, email=False, st
|
||||||
if not no_checks:
|
if not no_checks:
|
||||||
try:
|
try:
|
||||||
_check_domain_is_ready_for_ACME(domain)
|
_check_domain_is_ready_for_ACME(domain)
|
||||||
except:
|
except Exception as e:
|
||||||
msg = "Certificate renewing for %s failed !" % (domain)
|
logger.error(e)
|
||||||
logger.error(msg)
|
|
||||||
if email:
|
if email:
|
||||||
logger.error("Sending email with details to root ...")
|
logger.error("Sending email with details to root ...")
|
||||||
_email_renewing_failed(domain, msg)
|
_email_renewing_failed(domain, e)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
logger.info(
|
logger.info(
|
||||||
|
|
Loading…
Add table
Reference in a new issue