mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
No m18n.n needed in YunohostErrors
This commit is contained in:
parent
dcf2ca8b55
commit
ba7bdb8f14
2 changed files with 4 additions and 4 deletions
|
@ -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=[]):
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue