Error !

TypeError: 'bool' object has no attribute '__getitem__'

</%def> <%def name="getMynewsroomArticleBySlug(articleSlug)"> <% import urllib, json url = 'https://mynewsdesk.ferd.no/wp-json/dcmynewsdesk/v1/article-slug/' + articleSlug response = urllib.urlopen(url) mydata = json.loads(response.read()) all_items = mydata['posts'][0]
templates/ferd/partials, line 80:
<%
templates/ferd/newsroom-article, line 4:
<%
/srv/dd-web01/limecms/ferd/ferd01/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py, line 899:
callable_(context, *args, **kwargs)
/srv/dd-web01/limecms/ferd/ferd01/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py, line 873:
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
/srv/dd-web01/limecms/ferd/ferd01/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py, line 838:
**_kwargs_for_callable(callable_, data))
/srv/dd-web01/limecms/ferd/ferd01/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/template.py, line 462:
return runtime._render(self, self.callable_, args, data)
/var/limecms/ferd/ferd01/ferd-inst/Products/LimeTemplate/LimeTemplate.py, line 704:
html = mytemplate.render(object=object, site=site, request=self.REQUEST, extra=extra.get('kwargs', None), **extra)