This commit is contained in:
Jakub Roztocil 2016-03-02 01:02:11 +08:00
parent d4067fcb6d
commit 7fd46e0b0d

View File

@ -189,7 +189,7 @@ def http(*args, **kwargs):
if '--debug' not in args: if '--debug' not in args:
if '--traceback' not in args: if '--traceback' not in args:
extra_args.append('--traceback') extra_args.append('--traceback')
if '--timeout' not in ' '.join(args): if not any('--timeout' in arg for arg in args):
extra_args.append('--timeout=3') extra_args.append('--timeout=3')
args = extra_args + args args = extra_args + args