Merge pull request #1333 from HyuPete/patch-1

fix error when running caused by `global_args.timeout` being None
This commit is contained in:
Daniel.y
2025-04-10 18:24:50 +08:00
committed by GitHub

View File

@@ -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))
)