Skip to content

Commit 478fee6

Browse files
committed
typo.
1 parent 34e6f84 commit 478fee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchaudio/datasets/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def download_single_url(
134134
if resume and os.path.exists(filepath):
135135
mode = "ab"
136136
local_size = os.path.getsize(filepath)
137-
elif resume and os.path.exists(filepath):
137+
elif not resume and os.path.exists(filepath):
138138
raise RuntimeError(
139139
"{} already exists. Delete the file manually and retry.".format(filepath)
140140
)

0 commit comments

Comments
 (0)