diff --git a/pym/update/utils/cl_update.py b/pym/update/utils/cl_update.py index 0754278..adab3e1 100644 --- a/pym/update/utils/cl_update.py +++ b/pym/update/utils/cl_update.py @@ -17,6 +17,7 @@ import sys from calculate.core.server.func import Action, Tasks from calculate.lib.cl_lang import setLocalTranslate, getLazyLocalTranslate +from calculate.lib.cl_template import TemplatesError from calculate.lib.utils.colortext import get_color_print, Colors from calculate.lib.utils.files import FilesError from calculate.update.update import UpdateError @@ -34,7 +35,9 @@ class ClUpdateAction(Action): Действие обновление конфигурационных файлов """ # ошибки, которые отображаются без подробностей - native_error = (FilesError, UpdateError, GitError, EmergeError) + native_error = (FilesError, UpdateError, + TemplatesError, + GitError, EmergeError) successMessage = None failedMessage = None diff --git a/pym/update/utils/cl_update_profile.py b/pym/update/utils/cl_update_profile.py index 2f054cd..f881a27 100644 --- a/pym/update/utils/cl_update_profile.py +++ b/pym/update/utils/cl_update_profile.py @@ -17,6 +17,7 @@ import sys from calculate.core.server.func import Action, Tasks from calculate.lib.cl_lang import setLocalTranslate, getLazyLocalTranslate +from calculate.lib.cl_template import TemplatesError from calculate.lib.utils.files import FilesError from calculate.update.update import UpdateError from calculate.lib.utils.portage import GitError @@ -30,7 +31,9 @@ class ClUpdateProfileAction(Action): Действие обновление конфигурационных файлов """ # ошибки, которые отображаются без подробностей - native_error = (FilesError, UpdateError, GitError) + native_error = (FilesError, + TemplatesError, + UpdateError, GitError) successMessage = __("The profile was successfully updated") failedMessage = __("Failed to update the profile")