Update src/yunohost/service.py

Co-authored-by: Kayou <pierre@kayou.io>
This commit is contained in:
Alexandre Aubin 2020-05-06 20:06:16 +02:00 committed by GitHub
parent 6fc5b41302
commit 58a29f218e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -314,9 +314,8 @@ def service_status(names=[]):
else: else:
translation_key = "service_description_%s" % name translation_key = "service_description_%s" % name
if "description" in infos is not None: description = infos.get("description")
description = infos.get("description") if not description:
else:
description = m18n.n(translation_key) description = m18n.n(translation_key)
# that mean that we don't have a translation for this string # that mean that we don't have a translation for this string