##// END OF EJS Templates
fixed badRequest on views decorated by @jsonify
marcink -
r2970:6248c6fb beta
parent child Browse files
Show More
@@ -108,7 +108,7 b' class HomeController(BaseController):'
108 simple=True)
108 simple=True)
109 return render('/repo_switcher_list.html')
109 return render('/repo_switcher_list.html')
110 else:
110 else:
111 return HTTPBadRequest()
111 raise HTTPBadRequest()
112
112
113 def branch_tag_switcher(self, repo_name):
113 def branch_tag_switcher(self, repo_name):
114 if request.is_xhr:
114 if request.is_xhr:
@@ -116,4 +116,4 b' class HomeController(BaseController):'
116 c.rhodecode_repo = c.rhodecode_db_repo.scm_instance
116 c.rhodecode_repo = c.rhodecode_db_repo.scm_instance
117 return render('/switch_to_list.html')
117 return render('/switch_to_list.html')
118 else:
118 else:
119 return HTTPBadRequest()
119 raise HTTPBadRequest()
General Comments 0
You need to be logged in to leave comments. Login now