We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34e6f84 commit 478fee6Copy full SHA for 478fee6
torchaudio/datasets/utils.py
@@ -134,7 +134,7 @@ def download_single_url(
134
if resume and os.path.exists(filepath):
135
mode = "ab"
136
local_size = os.path.getsize(filepath)
137
- elif resume and os.path.exists(filepath):
+ elif not resume and os.path.exists(filepath):
138
raise RuntimeError(
139
"{} already exists. Delete the file manually and retry.".format(filepath)
140
)
0 commit comments