Skip to content

Commit 668a8c9

Browse files
authored
Merge pull request #97 from natefoo/catch-repo-list-failure
Catch failures on requests to the installed repo list when doing post-timeout spinning on installation in shed-tools
2 parents 1b99afe + 4e5a9e3 commit 668a8c9

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ephemeris/shed_tools.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,11 @@ def wait_for_install(repository, tool_shed_client, timeout=3600):
533533
Returns True if install finished, returns False when timeout is exceeded.
534534
"""
535535
def install_done(tool, tool_shed_client):
536-
installed_repo_list = tool_shed_client.get_repositories()
536+
try:
537+
installed_repo_list = tool_shed_client.get_repositories()
538+
except ConnectionError as e:
539+
log.warning('Failed to get repositories list: %s', str(e))
540+
return False
537541
for installing_repo in installed_repo_list:
538542
if (tool['name'] == installing_repo['name']) and (installing_repo['owner'] == tool['owner']):
539543
if installing_repo['status'] not in ['Installed', 'Error']:

0 commit comments

Comments
 (0)