Skip to content
Snippets Groups Projects

fix: Fix error where GH pre-load crashes app if not data found

1 unresolved thread
3 files
+ 26
2
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -159,7 +159,9 @@ public class DefaultCveService implements CveService {
return om.readerFor(CveProjectData.class).readValue(githubApi.getCveDetails(params));
} catch (Exception e) {
throw new RuntimeException(String.format("Could not fetch CVE %s from GitHub", key), e);
// Catch and log so as to not block the pre-load if GH has issues
LOGGER.error(String.format("Could not fetch CVE %s from GitHub", key), e);
Please register or sign in to reply
return null;
}
}
}
Loading