mirror of
https://github.com/HKUDS/LightRAG.git
synced 2025-09-03 05:13:50 +00:00
fix error when running caused by global_args.timeout
being None
This commit is contained in:
parent
1c1afb4eaf
commit
954c3b4ff2
@ -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))
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user