Merge pull request #1333 from HyuPete/patch-1
fix error when running caused by `global_args.timeout` being None
This commit is contained in:
commit
cf529dc5e1
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue