pre_check() on test instead

This commit is contained in:
harisreedhar
2026-05-11 16:35:16 +02:00
committed by henryruhs
parent 4338d16d17
commit 887a6ac1c7
2 changed files with 3 additions and 2 deletions
-2
View File
@@ -54,8 +54,6 @@ def route(args : Args) -> None:
benchmarker.render()
if state_manager.get_item('command') == 'api':
if not common_pre_check() or not processors_pre_check():
hard_exit(2)
logger.info(translator.get('api_started').format(host = state_manager.get_item('api_host'), port = state_manager.get_item('api_port')), __name__)
uvicorn.run(create_api(), host = state_manager.get_item('api_host'), port = state_manager.get_item('api_port'))
hard_exit(1)