Browse Source

Обработка TemplatesError

tags/3.4.0_beta3
Mike Khiretskiy 5 years ago
parent
commit
3a10dff960
2 changed files with 8 additions and 2 deletions
  1. +4
    -1
      pym/update/utils/cl_update.py
  2. +4
    -1
      pym/update/utils/cl_update_profile.py

+ 4
- 1
pym/update/utils/cl_update.py View File

@@ -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


+ 4
- 1
pym/update/utils/cl_update_profile.py View File

@@ -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