pre_check() on test instead

This commit is contained in:
harisreedhar
2026-03-17 14:02:16 +01:00
committed by henryruhs
parent c35cf5a607
commit 2ee01b38ee
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)