Catch all exceptions

Otherwise sax exceptions will escape this catch and we cannot cache the
result which leads to requests every time the update info is requested.
This commit is contained in:
René Pfeuffer
2020-09-24 11:49:35 +02:00
parent 1bf70fd655
commit ebd48413b8

View File

@@ -105,7 +105,7 @@ public class ReleaseFeedParser {
}
ReleaseFeedDto releaseFeed = client.get(url).request().contentFromXml(ReleaseFeedDto.class);
return filterForLatestRelease(releaseFeed);
} catch (IOException e) {
} catch (Exception e) {
LOG.error("Could not parse release feed from {}", url, e);
return Optional.empty();
}