[FIX] garbage

WTF is the point of using dict.get when you're going to blow up the
next freaking line because you don't handle it returning None?

bzr revid: xmo@openerp.com-20130903144738-jygw2aepjn6sd2tb
This commit is contained in:
Xavier Morel
2013-09-03 16:47:38 +02:00
parent c89d31ca95
commit aa042e6207
+1 -1
View File
@@ -102,7 +102,7 @@ class Website(openerp.addons.web.controllers.main.Home):
@http.route('/page/<path:path>', type='http', auth="admin")
def page(self, path, **kwargs):
website = request.registry.get("website")
website = request.registry['website']
values = website.get_rendering_context({
'path': path
})