提交 c175eeb3 编写于 作者: W wangmeng28

Fix wrong index in dataset downloading exception

上级 7687756b
...@@ -71,7 +71,7 @@ def download(url, module_name, md5sum): ...@@ -71,7 +71,7 @@ def download(url, module_name, md5sum):
if retry < retry_limit: if retry < retry_limit:
retry += 1 retry += 1
else: else:
raise RuntimeError("Cannot download {0} within retry limit {2}". raise RuntimeError("Cannot download {0} within retry limit {1}".
format(url, retry_limit)) format(url, retry_limit))
print "Cache file %s not found, downloading %s" % (filename, url) print "Cache file %s not found, downloading %s" % (filename, url)
r = requests.get(url, stream=True) r = requests.get(url, stream=True)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册