Source:
<code>public Workflow setupWorkflowVersions(String repositoryId, Workflow workflow, Optional<Workflow> existingWorkflow, Map<String, WorkflowVersion> existingDefaults) { GHRateLimit startRateLimit = getGhRateLimitQuietly(); GHRepository repository = getRepository(repositoryId); List<Triple<String, Date, String>> references = new ArrayList<>(); try { GHRef[] refs = repository.getRefs(); for (GHRef ref : refs) { if (workflow.getMode() != WorkflowMode.DOCKSTORE_YML || ref.getRef().startsWith("refs/tags")) { references.add(getRef(ref, repository)); } } } catch (GHFileNotFoundException e) { LOG.debug("repo had no releases or tags: " + repositoryId); } catch (IOException e) { LOG.info(gitUsername + ": Cannot get branches or tags for workflow {}"); throw new CustomWebApplicationException("Could not reach GitHub, please try again later", HttpStatus.SC_SERVICE_UNAVAILABLE); } for (Triple<String, Date, String> ref : references) { if (ref != null) { SourceFile dockstoreYml = null; if (workflow.getMode() == WorkflowMode.DOCKSTORE_YML) { try { dockstoreYml = getDockstoreYml(repository.getFullName(), ref.getLeft()); } catch (CustomWebApplicationException ex) { <START> LOG.info("No .dockstore.yml present."); <END> continue; } } WorkflowVersion version = setupWorkflowVersionsHelper(repositoryId, workflow, ref, existingWorkflow, existingDefaults, repository, dockstoreYml); if (version != null) { workflow.addWorkflowVersion(version); } } } GHRateLimit endRateLimit = getGhRateLimitQuietly(); reportOnRateLimit("setupWorkflowVersions", startRateLimit, endRateLimit); return workflow; }</code><technical_language>LOG.error log exception</technical_language>

Target:
public Workflow setupWorkflowVersions(String repositoryId, Workflow workflow, Optional<Workflow> existingWorkflow, Map<String, WorkflowVersion> existingDefaults) { GHRateLimit startRateLimit = getGhRateLimitQuietly(); GHRepository repository = getRepository(repositoryId); List<Triple<String, Date, String>> references = new ArrayList<>(); try { GHRef[] refs = repository.getRefs(); for (GHRef ref : refs) { if (workflow.getMode() != WorkflowMode.DOCKSTORE_YML || ref.getRef().startsWith("refs/tags")) { references.add(getRef(ref, repository)); } } } catch (GHFileNotFoundException e) { LOG.debug("repo had no releases or tags: " + repositoryId); } catch (IOException e) { LOG.info(gitUsername + ": Cannot get branches or tags for workflow {}"); throw new CustomWebApplicationException("Could not reach GitHub, please try again later", HttpStatus.SC_SERVICE_UNAVAILABLE); } for (Triple<String, Date, String> ref : references) { if (ref != null) { SourceFile dockstoreYml = null; if (workflow.getMode() == WorkflowMode.DOCKSTORE_YML) { try { dockstoreYml = getDockstoreYml(repository.getFullName(), ref.getLeft()); } catch (CustomWebApplicationException ex) { LOG.error("No .dockstore.yml present.", ex); continue; } } WorkflowVersion version = setupWorkflowVersionsHelper(repositoryId, workflow, ref, existingWorkflow, existingDefaults, repository, dockstoreYml); if (version != null) { workflow.addWorkflowVersion(version); } } } GHRateLimit endRateLimit = getGhRateLimitQuietly(); reportOnRateLimit("setupWorkflowVersions", startRateLimit, endRateLimit); return workflow; }