Bugfixes for start service

This commit is contained in:
2022-05-24 20:12:59 +02:00
parent f317035342
commit a590cfd066
46 changed files with 116 additions and 94 deletions

View File

@@ -15,7 +15,7 @@ __title__ = 'cpl_core.configuration'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2020 - 2022 sh-edraft.de'
__version__ = '2022.6.0rc1'
__version__ = '2022.6.1.dev2'
from collections import namedtuple
@@ -34,4 +34,4 @@ from .validator_abc import ValidatorABC
from .variable_argument import VariableArgument
VersionInfo = namedtuple('VersionInfo', 'major minor micro')
version_info = VersionInfo(major='2022', minor='6', micro='0.rc1')
version_info = VersionInfo(major='2022', minor='6', micro='1.dev2')

View File

@@ -1,6 +1,7 @@
import json
import os
import sys
import traceback
from collections.abc import Callable
from typing import Union, Type, Optional
@@ -304,7 +305,7 @@ class Configuration(ConfigurationABC):
break
if abort:
continue
sys.exit()
cmd: ArgumentExecutableABC = services.get_service(exe.executable_type)
self.add_configuration('ACTIVE_EXECUTABLE', exe.name)
@@ -312,7 +313,7 @@ class Configuration(ConfigurationABC):
prevent = exe.prevent_next_executable
success = True
except Exception as e:
Console.error('An error occurred while executing arguments.')
Console.error('An error occurred while executing arguments.', traceback.format_exc())
sys.exit()
return success