Also catch NoSuchFileException

This commit is contained in:
Lee Hinman 2015-08-14 13:54:14 -06:00
parent 33f118e9c8
commit d35a3a37eb
1 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.nio.file.Files;
import java.nio.file.NoSuchFileException;
import java.nio.file.Path;
import java.nio.file.attribute.FileTime;
import java.util.Arrays;
@ -148,7 +149,7 @@ public class HttpDownloadHelper {
}
return true;
}
} catch (FileNotFoundException e) {
} catch (FileNotFoundException | NoSuchFileException e) {
// checksum file doesn't exist
return false;
} catch (IOException e) {