Comment 12 for bug 882502

Revision history for this message
Alexander Bittner (yb) wrote :

Hi!

We have seen this one in our error monitor these days, too:

Tue Apr 2 14:41:13 2013 ERROR karl AttributeError: 'NoneType' object has no attribute 'title'
Details
AttributeError: 'NoneType' object has no attribute 'title'
Exception when processing https://karl.oxfam.org.uk/communities/building-livelihoods-and-strengthening-communities/files
Referer: https://karl.oxfam.org.uk/communities/building-livelihoods-and-strengthening-communities/view.html

Traceback (most recent call last):
  File "/srv/multikarl/production/15/eggs/pyramid-1.2.1-py2.6.egg/pyramid/tweens.py", line 17, in excview_tween
    response = handler(request)
  File "/srv/multikarl/production/15/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 107, in tm_tween
    return response
  File "/srv/multikarl/production/15/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 75, in __exit__
    return self._retry_or_raise(t, v, tb)
  File "/srv/multikarl/production/15/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 60, in _retry_or_raise
    reraise(t, v, tb) # otherwise reraise the exception
  File "/srv/multikarl/production/15/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 100, in tm_tween
    response = handler(request)
  File "/srv/multikarl/production/15/eggs/pyramid-1.2.1-py2.6.egg/pyramid/router.py", line 153, in handle_request
    response = view_callable(context, request)
  File "/srv/multikarl/production/15/eggs/pyramid-1.2.1-py2.6.egg/pyramid/config/views.py", line 186, in _secured_view
    return view(context, request)
  File "/srv/multikarl/production/15/eggs/pyramid-1.2.1-py2.6.egg/pyramid/config/views.py", line 292, in rendered_view
    result = view(context, request)
  File "/srv/multikarl/production/15/eggs/karl-3.106-py2.6.egg/karl/content/views/files.py", line 178, in show_folder_view
    reverse = True,
  File "/srv/multikarl/production/15/eggs/karl-3.106-py2.6.egg/karl/content/views/files.py", line 969, in get_filegrid_client_data
    target_folders = get_target_folders(context)
  File "/srv/multikarl/production/15/eggs/karl-3.106-py2.6.egg/karl/content/views/files.py", line 1276, in get_target_folders
    title = item.title
AttributeError: 'NoneType' object has no attribute 'title'

It looks quite similar, though the next-to-last line " title = item.title" looks different from your report. Both occurrences were related to the URL shown in the traceback.

Regards,
Alex