Changed exit() to sys.exit()
This commit is contained in:
@@ -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')
|
||||
|
@@ -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:
|
||||
"""
|
||||
|
Reference in New Issue
Block a user