Skip to content

Commit

Permalink
Fixes for BioBlend v0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nsoranzo committed Aug 12, 2016
1 parent c270fec commit 9fdf490
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions planemo/shed/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,11 +623,7 @@ def update_repository_for(ctx, tsi, id, repo_config):
kwds["homepage_url"] = homepage_url
if category_ids is not None:
kwds['category_ids[]'] = category_ids
repo = Client._put(tsi.repositories, id=id, payload=kwds)
if repo.status_code in [200, 201]:
return repo.json()
else:
raise Exception("Failed to update repository.")
return Client._put(tsi.repositories, id=id, payload=kwds)


def create_repository_for(ctx, tsi, name, repo_config):
Expand Down
2 changes: 1 addition & 1 deletion planemo/shed/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def api_exception_to_message(e):
def find_category_ids(tsi, categories):
""" Translate human readable category names into their associated IDs.
"""
category_list = tsi.repositories.get_categories()
category_list = tsi.categories.get_categories()

category_ids = []
for cat in categories:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ aenum
Click
six>=1.7.0
pyyaml
bioblend>=0.7.0
bioblend>=0.8.0
docutils
jinja2
glob2
Expand Down

0 comments on commit 9fdf490

Please sign in to comment.