Changed exit() to sys.exit()

This commit is contained in:
2022-01-19 12:44:23 +01:00
parent 61e7b9d684
commit ada3d133df
40 changed files with 81 additions and 78 deletions

View File

@@ -15,7 +15,7 @@ __title__ = 'cpl_cli.publish'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2020 - 2021 sh-edraft.de'
__version__ = '2021.11.0.post2'
__version__ = '2021.11.0.post3'
from collections import namedtuple
@@ -24,4 +24,4 @@ from .publisher_abc import PublisherABC
from .publisher_service import PublisherService
VersionInfo = namedtuple('VersionInfo', 'major minor micro')
version_info = VersionInfo(major='2021', minor='11', micro='0.post2')
version_info = VersionInfo(major='2021', minor='11', micro='0.post3')

View File

@@ -88,7 +88,7 @@ class PublisherService(PublisherABC):
shutil.rmtree(path)
except Exception as e:
Console.error(f'{e}')
exit()
sys.exit()
@staticmethod
def _create_path(path: str):
@@ -102,7 +102,7 @@ class PublisherService(PublisherABC):
os.makedirs(path)
except Exception as e:
Console.error(f'{e}')
exit()
sys.exit()
def _is_path_included(self, path: str) -> bool:
"""