Changed exit() to sys.exit()
This commit is contained in:
@@ -15,7 +15,7 @@ __title__ = 'cpl_core.configuration'
|
||||
__author__ = 'Sven Heidemann'
|
||||
__license__ = 'MIT'
|
||||
__copyright__ = 'Copyright (c) 2020 - 2021 sh-edraft.de'
|
||||
__version__ = '2021.11.0.post3'
|
||||
__version__ = '2021.11.0.post4'
|
||||
|
||||
from collections import namedtuple
|
||||
|
||||
@@ -27,4 +27,4 @@ from .configuration_variable_name_enum import ConfigurationVariableNameEnum
|
||||
from .console_argument import ConsoleArgument
|
||||
|
||||
VersionInfo = namedtuple('VersionInfo', 'major minor micro')
|
||||
version_info = VersionInfo(major='2021', minor='11', micro='0.post3')
|
||||
version_info = VersionInfo(major='2021', minor='11', micro='0.post4')
|
||||
|
@@ -333,7 +333,7 @@ class Configuration(ConfigurationABC):
|
||||
else:
|
||||
self._print_error(__name__, error_message)
|
||||
|
||||
exit()
|
||||
sys.exit()
|
||||
|
||||
add_args = []
|
||||
for next_arg in next_arguments:
|
||||
@@ -360,7 +360,7 @@ class Configuration(ConfigurationABC):
|
||||
if output:
|
||||
self._print_error(__name__, f'File not found: {file_path}')
|
||||
|
||||
exit()
|
||||
sys.exit()
|
||||
|
||||
if output:
|
||||
self._print_warn(__name__, f'Not Loaded config file: {file_path}')
|
||||
|
Reference in New Issue
Block a user