Also catch NoSuchFileException
This commit is contained in:
parent
33f118e9c8
commit
d35a3a37eb
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue