Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Commit

Permalink
[#56] Catching exceptions from JCenter. Fixes #56
Browse files Browse the repository at this point in the history
  • Loading branch information
marcingrzejszczak committed Oct 16, 2015
1 parent b740d14 commit b706e86
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ class JCenterNewVersionFinderFactory implements NewVersionFinderFactory {
if (!xml) {
return []
}
return [dependency, new Dependency(dependency, getLatestDependencyVersion(xml.versioning.release.text(), xml, versionToExcludePatterns))]
try {
return [dependency, new Dependency(dependency, getLatestDependencyVersion(xml.versioning.release.text(), xml, versionToExcludePatterns))]
} catch (Exception e) {
log.error("Exception occurred while trying to fetch latest dependencies. The fetched XML is [$xml]".toString(), e)
return []
}
} as Future
}

Expand Down

0 comments on commit b706e86

Please sign in to comment.