fix error when running caused by global_args.timeout being None

This commit is contained in:
HyuPete 2025-04-10 15:57:50 +07:00 committed by GitHub
parent 1c1afb4eaf
commit 954c3b4ff2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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