'NoneType' object has no attribute 'get' in community.py

Bug #1715169 reported by Paul Everitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL4
Fix Released
Low
Carlos de la Guardia

Bug Description

From the error log on Tue Sep 5 10:23:22 2017

AttributeError: 'NoneType' object has no attribute 'get'

 - Expression: "${ri.modified_by_url}"
 - Filename: /srv/osfkarl/production/110/karl/views/templates/community.pt
 - Location: (49:23)

 - Source: <a href="${ri.modified_by_url}">${ri.modified_by_title}</a>
                        ^^^^^^^^^^^^^^^^^^^^^
 - Arguments: repeat: {...} (0)
               renderer_name: templates/community.pt
               head_data: <script type="text/javascript">\nwindow._karl_clien...
               actions: <list - at 0xa0294eecL>
               renderer_info: <RendererHelper - at 0xae59e5ecL>
               api: <TemplateAPI - at 0x9c9ade0cL>
               recent_items: <list - at 0xa63e4cacL>
               feed_url: https://karl.soros.org/communities/box.com-pilot-p...
               request: <Request - at 0x9db8614cL>
               context: <Community box.com-pilot-project at 0xa3ebedecL>
               batch_info: {...} (14)
               view: <function show_community_view at 0xae60f3acL>
Exception when processing https://karl.soros.org/communities/box.com-pilot-project/view.html
Referer: https://karl.soros.org/searchresults.html?body=box.com&kind=communities

Traceback (most recent call last):
  File "/srv/osfkarl/.buildout/eggs/cp27mu/pyramid-1.2.1-py2.7.egg/pyramid/tweens.py", line 17, in excview_tween
    response = handler(request)
  File "/srv/osfkarl/.buildout/eggs/cp27mu/pyramid_tm-0.5-py2.7.egg/pyramid_tm/__init__.py", line 107, in tm_tween
    return response
  File "/srv/osfkarl/.buildout/eggs/cp27mu/pyramid_tm-0.5-py2.7.egg/pyramid_tm/__init__.py", line 75, in __exit__
    return self._retry_or_raise(t, v, tb)
  File "/srv/osfkarl/.buildout/eggs/cp27mu/pyramid_tm-0.5-py2.7.egg/pyramid_tm/__init__.py", line 60, in _retry_or_raise
    reraise(t, v, tb) # otherwise reraise the exception
  File "/srv/osfkarl/.buildout/eggs/cp27mu/pyramid_tm-0.5-py2.7.egg/pyramid_tm/__init__.py", line 100, in tm_tween
    response = handler(request)
  File "/srv/osfkarl/.buildout/eggs/cp27mu/pyramid-1.2.1-py2.7.egg/pyramid/router.py", line 153, in handle_request
    response = view_callable(context, request)
  File "/srv/osfkarl/.buildout/eggs/cp27mu/pyramid-1.2.1-py2.7.egg/pyramid/config/views.py", line 186, in _secured_view
    return view(context, request)
  File "/srv/osfkarl/.buildout/eggs/cp27mu/pyramid-1.2.1-py2.7.egg/pyramid/config/views.py", line 311, in rendered_view
    context)
  File "/srv/osfkarl/.buildout/eggs/cp27mu/pyramid-1.2.1-py2.7.egg/pyramid/renderers.py", line 393, in render_view
    return self.render_to_response(response, system, request=request)
  File "/srv/osfkarl/.buildout/eggs/cp27mu/pyramid-1.2.1-py2.7.egg/pyramid/renderers.py", line 422, in render_to_response
    result = self.render(value, system_values, request=request)
  File "/srv/osfkarl/.buildout/eggs/cp27mu/pyramid-1.2.1-py2.7.egg/pyramid/renderers.py", line 418, in render
    result = renderer(value, system_values)
  File "/srv/osfkarl/.buildout/eggs/cp27mu/pyramid-1.2.1-py2.7.egg/pyramid/chameleon_zpt.py", line 49, in __call__
    result = self.template(**system)
  File "/srv/osfkarl/.buildout/eggs/cp27mu/Chameleon-2.8.2-py2.7.egg/chameleon/template.py", line 125, in __call__
    return self.render(**kwargs)
  File "/srv/osfkarl/.buildout/eggs/cp27mu/Chameleon-2.8.2-py2.7.egg/chameleon/zpt/template.py", line 258, in render
    return super(PageTemplate, self).render(**vars)
  File "/srv/osfkarl/.buildout/eggs/cp27mu/Chameleon-2.8.2-py2.7.egg/chameleon/template.py", line 191, in render
    raise_with_traceback(exc, tb)
  File "/srv/osfkarl/.buildout/eggs/cp27mu/Chameleon-2.8.2-py2.7.egg/chameleon/template.py", line 172, in render
    self._render(stream, econtext, rcontext)
  File "community_4233f7ac1936d3e500bc88f81c80ac9232cbf854.py", line 1019, in render
  File "/srv/osfkarl/.buildout/eggs/cp27mu/Chameleon-2.8.2-py2.7.egg/chameleon/zpt/template.py", line 262, in include
    self._render(*args, **kwargs)
  File "community_layout_d71bc7d3761a9c0b6464de69c1fb253e57ca37d9.py", line 1339, in render
  File "community_4233f7ac1936d3e500bc88f81c80ac9232cbf854.py", line 810, in __fill_content
  File "/srv/osfkarl/.buildout/eggs/cp27mu/Chameleon-2.8.2-py2.7.egg/chameleon/py26.py", line 8, in lookup_attr
    raise exc
AttributeError: 'NoneType' object has no attribute 'get'

 - Expression: "${ri.modified_by_url}"
 - Filename: /srv/osfkarl/production/110/karl/views/templates/community.pt
 - Location: (49:23)

 - Source: <a href="${ri.modified_by_url}">${ri.modified_by_title}</a>
                        ^^^^^^^^^^^^^^^^^^^^^
 - Arguments: repeat: {...} (0)
               renderer_name: templates/community.pt
               head_data: <script type="text/javascript">\nwindow._karl_clien...
               actions: <list - at 0xa0294eecL>
               renderer_info: <RendererHelper - at 0xae59e5ecL>
               api: <TemplateAPI - at 0x9c9ade0cL>
               recent_items: <list - at 0xa63e4cacL>
               feed_url: https://karl.soros.org/communities/box.com-pilot-p...
               request: <Request - at 0x9db8614cL>
               context: <Community box.com-pilot-project at 0xa3ebedecL>
               batch_info: {...} (14)
               view: <function show_community_view at 0xae60f3acL>

Revision history for this message
Carlos de la Guardia (cguardia) wrote :

First look was not enough to fix. Will need to work a bit more to get to the bottom of this one.

Changed in karl4:
status: New → In Progress
Revision history for this message
Carlos de la Guardia (cguardia) wrote :

Put in a fix.

Changed in karl4:
status: In Progress → Fix Committed
Revision history for this message
Carlos de la Guardia (cguardia) wrote :

Deployed to staging.

Changed in karl4:
milestone: 035 → 036
Changed in karl4:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.