Skip to content

Commit

Permalink
Also catch NoSuchFileException
Browse files Browse the repository at this point in the history
  • Loading branch information
dakrone committed Aug 14, 2015
1 parent 33f118e commit d35a3a3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
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;
Expand Down Expand Up @@ -148,7 +149,7 @@ public boolean downloadAndVerifyChecksum(URL checksumURL, Path originalFile, Pat
}
return true;
}
} catch (FileNotFoundException e) {
} catch (FileNotFoundException | NoSuchFileException e) {
// checksum file doesn't exist
return false;
} catch (IOException e) {
Expand Down

0 comments on commit d35a3a3

Please sign in to comment.