From 954c3b4ff22ca5c8ed1d213bdda0e6de72653ffe Mon Sep 17 00:00:00 2001 From: HyuPete <28629210+HyuPete@users.noreply.github.com> Date: Thu, 10 Apr 2025 15:57:50 +0700 Subject: [PATCH] fix error when running caused by `global_args.timeout` being None --- lightrag/api/run_with_gunicorn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightrag/api/run_with_gunicorn.py b/lightrag/api/run_with_gunicorn.py index cf902a8a..5b41af8a 100644 --- a/lightrag/api/run_with_gunicorn.py +++ b/lightrag/api/run_with_gunicorn.py @@ -147,8 +147,8 @@ def main(): # Timeout configuration prioritizes command line arguments gunicorn_config.timeout = ( - global_args.timeout - if global_args.timeout * 2 + global_args.timeout * 2 + if global_args.timeout is not None else int(os.getenv("TIMEOUT", 150 * 2)) )