Browse Source

Обработка TemplatesError

develop
Mike Khiretskiy 6 years ago
parent
commit
3a10dff960
  1. 5
      pym/update/utils/cl_update.py
  2. 5
      pym/update/utils/cl_update_profile.py

5
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

5
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")

Loading…
Cancel
Save