mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] simplify code
This commit is contained in:
parent
248508dcaa
commit
299aa978f7
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ def certificate_install_selfsigned(domain_list, force=False):
|
|||
# Check we ain't trying to overwrite a good cert !
|
||||
status = _get_status(domain)
|
||||
|
||||
if status != {} and status["summaryCode"] > 0 and not force:
|
||||
if status and status["summaryCode"] > 0 and not force:
|
||||
raise MoulinetteError(errno.EINVAL, m18n.n('certmanager_attempt_to_replace_valid_cert', domain=domain))
|
||||
|
||||
cert_folder_domain = os.path.join(cert_folder, domain)
|
||||
|
|
Loading…
Add table
Reference in a new issue