Commits

Marcin Kuzminski  committed 6248c6f

fixed badRequest on views decorated by @jsonify

  • Participants
  • Parent commits 5085e51

Comments (0)

Files changed (1)

File rhodecode/controllers/home.py

                                                     simple=True)
             return render('/repo_switcher_list.html')
         else:
-            return HTTPBadRequest()
+            raise HTTPBadRequest()
 
     def branch_tag_switcher(self, repo_name):
         if request.is_xhr:
             c.rhodecode_repo = c.rhodecode_db_repo.scm_instance
             return render('/switch_to_list.html')
         else:
-            return HTTPBadRequest()
+            raise HTTPBadRequest()