Don't throw an AssertionError on failed locale download

Fixes #3589
This commit is contained in:
Camotoy 2023-03-02 18:40:40 -05:00
parent fca726caa4
commit 95d10fb7fc

View file

@ -91,7 +91,7 @@ public class WebUtils {
InputStream in = con.getInputStream();
Files.copy(in, Paths.get(fileLocation), StandardCopyOption.REPLACE_EXISTING);
} catch (Exception e) {
throw new AssertionError("Unable to download and save file: " + fileLocation + " (" + reqURL + ")", e);
throw new RuntimeException("Unable to download and save file: " + fileLocation + " (" + reqURL + ")", e);
}
}