Skip to content

Commit e55cf51

Browse files
committed
Minor bug fix
Some failed downloads result in the creation of a local file with ".html" appended to the actual name. These files may be deleted. Previously, this one done only if Settings.verbose was true. Fixed with this commit.
1 parent d32684f commit e55cf51

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

auxil/try_download.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
catch
5252
if Settings.verbose
5353
fprintf('failure!\n');
54-
if exist([dest_path, '.html'], 'file')
55-
delete([dest_path, '.html']);
56-
end
54+
end
55+
if exist([dest_path, '.html'], 'file')
56+
delete([dest_path, '.html']);
5757
end
5858
if h == length(Settings.hosts)
5959
if exist(dest_path, 'file') ~= 2

0 commit comments

Comments
 (0)