Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/ephemeris/get_tool_list_from_galaxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ def record_repo(tool_elem):
if self.get_data_managers:
for tool in self.installed_tool_list:
if tool.get("model_class") == 'DataManagerTool':
repositories.append(get_repo_from_tool(tool))
repo = get_repo_from_tool(tool)
if repo:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good idea if a tool does not have a repo. Could you add a comment here with an example of why this is needed? For the people who read the code in the future and do not know all galaxy specifics by heart.

repositories.append(repo)

if self.get_all_tools:
tools_with_panel = repositories[:]
Expand Down
2 changes: 1 addition & 1 deletion src/ephemeris/shed_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def install_repository_revision(self, repository, log):
log.debug("\tRepository %s already installed (at revision %s)" %
(repository['name'], repository['changeset_revision']))
return "skipped"
elif "504" in str(e):
elif "504" in str(e) or 'Connection aborted' in str(e):
if log:
log.debug("Timeout during install of %s, extending wait to 1h", repository['name'])
success = self.wait_for_install(repository=repository, log=log, timeout=3600)
Expand Down