Remove conditional_exit() and introduce early exit

This commit is contained in:
henryruhs
2025-04-28 10:03:25 +02:00
parent 5e3ab88f63
commit 858acd2fe3
2 changed files with 16 additions and 23 deletions
-5
View File
@@ -12,11 +12,6 @@ def hard_exit(error_code : ErrorCode) -> None:
sys.exit(error_code)
def conditional_exit(error_code : ErrorCode) -> None:
if state_manager.get_item('command') == 'headless-run':
hard_exit(error_code)
def graceful_exit(error_code : ErrorCode) -> None:
process_manager.stop()
while process_manager.is_processing():