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

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