CroissanceCommune / autonomie

Autonomie est un progiciel de gestion à l'usage des CAE
GNU General Public License v3.0
20 stars 12 forks source link

Test 4.2 : erreur à l'export excel des notes de dépenses #1012

Closed tonthon closed 5 years ago

tonthon commented 5 years ago

Lorsqu'une note de dépense contient un type qui n'est plus référencé dans la base, une erreur d'endocage est soulevée

Traceback (most recent call last):
  File "/var/www/autonomie/local/lib/python2.7/site-packages/pyramid_exclog/__init__.py", line 134, in exclog_tween
    response = handler(request)
  File "/var/www/autonomie/local/lib/python2.7/site-packages/pyramid_tm/__init__.py", line 171, in tm_tween
    reraise(*exc_info)
  File "/var/www/autonomie/local/lib/python2.7/site-packages/pyramid_tm/__init__.py", line 136, in tm_tween
    response = handler(request)
  File "/var/www/autonomie/local/lib/python2.7/site-packages/pyramid/tweens.py", line 62, in excview_tween
    reraise(*attrs['exc_info'])
  File "/var/www/autonomie/local/lib/python2.7/site-packages/pyramid/tweens.py", line 22, in excview_tween
    response = handler(request)
  File "/var/www/autonomie/local/lib/python2.7/site-packages/pyramid/router.py", line 155, in handle_request
    view_name
  File "/var/www/autonomie/local/lib/python2.7/site-packages/pyramid/view.py", line 612, in _call_view
    response = view_callable(context, request)
  File "/var/www/autonomie/local/lib/python2.7/site-packages/pyramid/viewderivers.py", line 300, in secured_view
    return view(context, request)
  File "/var/www/autonomie/local/lib/python2.7/site-packages/pyramid/viewderivers.py", line 409, in viewresult_to_response
    result = view(context, request)
  File "/var/www/autonomie/local/lib/python2.7/site-packages/pyramid/viewderivers.py", line 147, in _requestonly_view
    response = view(request)
  File "/var/www/autonomie/local/lib/python2.7/site-packages/autonomie-4.2.0-py2.7.egg/autonomie/export/excel.py", line 167, in _view
    result = factory(request.context).render()
  File "/var/www/autonomie/local/lib/python2.7/site-packages/autonomie-4.2.0-py2.7.egg/autonomie/export/expense_excel.py", line 211, in __init__
    self.columns = self.get_columns()
  File "/var/www/autonomie/local/lib/python2.7/site-packages/autonomie-4.2.0-py2.7.egg/autonomie/export/expense_excel.py", line 302, in get_columns
    columns.extend(self.get_disabled_types_columns())
  File "/var/www/autonomie/local/lib/python2.7/site-packages/autonomie-4.2.0-py2.7.egg/autonomie/export/expense_excel.py", line 261, in get_disabled_types_columns
    type_.label
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 16: ordinal not in range(128)