Fix a potential bug in retry_timeout, thx flake8