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 Liste de factures : raise err ValueError: invalid literal for int() with base 10: #986

Closed tonthon closed 5 years ago

tonthon commented 5 years ago

Erreur rencontrée en production sur la 4.2 :

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 438, in rendered_view
    result = view(context, request)
  File "/var/www/autonomie/local/lib/python2.7/site-packages/pyramid/viewderivers.py", line 135, in _class_view
    response = inst()
  File "/var/www/autonomie/local/lib/python2.7/site-packages/autonomie-4.2.0-py2.7.egg/autonomie/views/__init__.py", line 310, in __call__
    return self._build_return_value(schema, appstruct, query)
  File "/var/www/autonomie/local/lib/python2.7/site-packages/autonomie-4.2.0-py2.7.egg/autonomie/views/__init__.py", line 474, in _build_return_value
    records = self._paginate(query, appstruct)
  File "/var/www/autonomie/local/lib/python2.7/site-packages/autonomie-4.2.0-py2.7.egg/autonomie/views/__init__.py", line 427, in _paginate
    current_page = self._get_current_page(appstruct)
  File "/var/www/autonomie/local/lib/python2.7/site-packages/autonomie-4.2.0-py2.7.egg/autonomie/views/__init__.py", line 416, in _get_current_page
    return convert_to_int(res)
  File "/var/www/autonomie/local/lib/python2.7/site-packages/autonomie-4.2.0-py2.7.egg/autonomie/compute/math_utils.py", line 164, in convert_to_int
    raise err
ValueError: invalid literal for int() with base 10: ''