Skip to content

Commit 35c8e97

Browse files
authored
Merge pull request #6497 from will-am/fix_6495
Fix wrong index in dataset downloading exception
2 parents 7687756 + c175eeb commit 35c8e97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/paddle/v2/dataset/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def download(url, module_name, md5sum):
7171
if retry < retry_limit:
7272
retry += 1
7373
else:
74-
raise RuntimeError("Cannot download {0} within retry limit {2}".
74+
raise RuntimeError("Cannot download {0} within retry limit {1}".
7575
format(url, retry_limit))
7676
print "Cache file %s not found, downloading %s" % (filename, url)
7777
r = requests.get(url, stream=True)

0 commit comments

Comments
 (0)