Skip to content

Commit 9fdf490

Browse files
committed
Fixes for BioBlend v0.8.0
1 parent c270fec commit 9fdf490

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

planemo/shed/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -623,11 +623,7 @@ def update_repository_for(ctx, tsi, id, repo_config):
623623
kwds["homepage_url"] = homepage_url
624624
if category_ids is not None:
625625
kwds['category_ids[]'] = category_ids
626-
repo = Client._put(tsi.repositories, id=id, payload=kwds)
627-
if repo.status_code in [200, 201]:
628-
return repo.json()
629-
else:
630-
raise Exception("Failed to update repository.")
626+
return Client._put(tsi.repositories, id=id, payload=kwds)
631627

632628

633629
def create_repository_for(ctx, tsi, name, repo_config):

planemo/shed/interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def api_exception_to_message(e):
8585
def find_category_ids(tsi, categories):
8686
""" Translate human readable category names into their associated IDs.
8787
"""
88-
category_list = tsi.repositories.get_categories()
88+
category_list = tsi.categories.get_categories()
8989

9090
category_ids = []
9191
for cat in categories:

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ aenum
22
Click
33
six>=1.7.0
44
pyyaml
5-
bioblend>=0.7.0
5+
bioblend>=0.8.0
66
docutils
77
jinja2
88
glob2

0 commit comments

Comments
 (0)