author | Thierry Florac <thierry.florac@onf.fr> |
Mon, 27 Aug 2018 11:32:07 +0200 | |
changeset 888 | 82839782b63d |
parent 887 | b26778f0d8a0 |
child 889 | 16a39f306f05 |
--- a/src/pyams_content/features/renderer/__init__.py Mon Aug 27 11:31:53 2018 +0200 +++ b/src/pyams_content/features/renderer/__init__.py Mon Aug 27 11:32:07 2018 +0200 @@ -45,7 +45,7 @@ request = check_request() renderer = request.registry.queryMultiAdapter((self, request), self.renderer_interface, name=self.renderer or '') - if 'lang' in request.params: + if (renderer is not None) and ('lang' in request.params): renderer.language = request.params['lang'] return renderer