Catch KeyDownloader::getMissingUrls exceptions

Signed-off-by: Graham <gpe@openrs2.org>
master
Graham 2 years ago
parent 33ecd68654
commit 9463a70520
  1. 4
      archive/src/main/kotlin/org/openrs2/archive/key/KeyImporter.kt

@ -75,18 +75,18 @@ public class KeyImporter @Inject constructor(
val urls = mutableSetOf<String>()
for (downloader in downloaders) {
for (url in downloader.getMissingUrls(seenUrls)) {
try {
for (url in downloader.getMissingUrls(seenUrls)) {
keys += downloader.download(url).map { key ->
Key(key, downloader.source)
}
urls += url
}
} catch (ex: IOException) {
logger.warn(ex) { "Failed to download keys from ${downloader.source.name}" }
continue
}
}
}
database.execute { connection ->
connection.prepareStatement(

Loading…
Cancel
Save