mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-08 16:42:10 +01:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user