No m18n.n needed in YunohostErrors

This commit is contained in:
Alexandre Aubin 2019-02-22 15:07:09 +01:00
parent dcf2ca8b55
commit ba7bdb8f14
2 changed files with 4 additions and 4 deletions

View file

@ -565,7 +565,7 @@ def app_upgrade(auth, app=[], url=None, file=None):
"""
if packages.dpkg_is_broken():
raise YunohostError(m18n.n("dpkg_is_broken"))
raise YunohostError("dpkg_is_broken")
from yunohost.hook import hook_add, hook_remove, hook_exec, hook_callback
@ -709,7 +709,7 @@ def app_install(operation_logger, auth, app, label=None, args=None, no_remove_on
force -- Do not ask for confirmation when installing experimental / low-quality apps
"""
if packages.dpkg_is_broken():
raise YunohostError(m18n.n("dpkg_is_broken"))
raise YunohostError("dpkg_is_broken")
from yunohost.hook import hook_add, hook_remove, hook_exec, hook_callback
from yunohost.log import OperationLogger
@ -966,7 +966,7 @@ def app_remove(operation_logger, auth, app):
app_ssowatconf(auth)
if packages.dpkg_is_broken():
raise YunohostError(m18n.n("this_action_broke_dpkg"))
raise YunohostError("this_action_broke_dpkg")
def app_addaccess(auth, apps, users=[]):

View file

@ -526,7 +526,7 @@ def tools_upgrade(operation_logger, auth, ignore_apps=False, ignore_packages=Fal
"""
from yunohost.utils import packages
if packages.dpkg_is_broken():
raise YunohostError(m18n.n("dpkg_is_broken"))
raise YunohostError("dpkg_is_broken")
failure = False