# HG changeset patch # User Marcin Kuzminski # Date 2012-10-28 21:56:48 # Node ID 6248c6fb1fcf218db0dcc9dc98fc8c2ec65aa6a0 # Parent 5085e51fba3abdf63badb779d07945e097db2fb1 fixed badRequest on views decorated by @jsonify diff --git a/rhodecode/controllers/home.py b/rhodecode/controllers/home.py --- a/rhodecode/controllers/home.py +++ b/rhodecode/controllers/home.py @@ -108,7 +108,7 @@ class HomeController(BaseController): simple=True) return render('/repo_switcher_list.html') else: - return HTTPBadRequest() + raise HTTPBadRequest() def branch_tag_switcher(self, repo_name): if request.is_xhr: @@ -116,4 +116,4 @@ class HomeController(BaseController): c.rhodecode_repo = c.rhodecode_db_repo.scm_instance return render('/switch_to_list.html') else: - return HTTPBadRequest() + raise HTTPBadRequest()