Skip to content

Commit

Permalink
Fix error handling status for repositories endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Oct 4, 2017
1 parent 791c45f commit fa6133e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/galaxy/webapps/galaxy/controllers/admin_toolshed.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,10 @@ def browse_repositories(self, trans, **kwd):
message, status = repository_util.check_for_updates(trans.app, trans.install_model, kwd.get('id'))
if message and status:
kwd['message'] = util.sanitize_text(message)
kwd['status'] = 'success' if status in [ 'ok', 'done', 'success' ] else 'danger'
kwd['status'] = 'success' if status in [ 'ok', 'done', 'success' ] else 'error'
kwd['dict_format'] = True
return self.installed_repository_grid(trans, **kwd)


@web.expose
@web.require_admin
def restore_repository (self, trans, **kwd):
Expand Down

0 comments on commit fa6133e

Please sign in to comment.