Anomalie #1040
ferméDASHBOARD CRASH : on general info
0%
Description
The general Info crash :
AttributeError at /test/dashboard_main/
'NoneType' object has no attribute 'year'
Request Method: GET
Request URL: http://ishtar.proxience.com/test/dashboard_main/
Django Version: 1.2.3
Exception Type: AttributeError
Exception Value:
'NoneType' object has no attribute 'year'
Exception Location: /var/local/ishtar-test/ishtar/ishtar_base/models.py in get_years, line 1710
Python Executable: /usr/bin/python
Python Version: 2.6.6
Python Path: ['/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/local/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/pymodules/python2.6', '/var/local/ishtar-test/', '/var/local/ishtar-test/ishtar/../xhtml2odt', '/var/local/ishtar-test/ishtar/../xhtml2odt']
Server time: ven, 12 Oct 2012 16:55:12 +0200
Traceback Switch to copy-and-paste view
/usr/lib/pymodules/python2.6/django/core/handlers/base.py in get_response
response = callback(request, *callback_args, **callback_kwargs) ...
▶ Local vars
/var/local/ishtar-test/ishtar/ishtar_base/views.py in action
return globals_dct[action_slug](request, dct, obj_id, *args, **kwargs) ...
▶ Local vars
/var/local/ishtar-test/ishtar/ishtar_base/views.py in dashboard_main
(_(u"Context records"), models.Dashboard(models.ContextRecord)), ...
▶ Local vars
/var/local/ishtar-test/ishtar/ishtar_base/models.py in __init__
self.years = model.get_years() ...
▶ Local vars
/var/local/ishtar-test/ishtar/ishtar_base/models.py in get_years
yr = res['operation__start_date'].year ...
▶ Local vars