Indico.flask - ERROR errors.py:99 -- tuple index out of range

hi Gurus,

we receiving this error message in admin email address. What could be the reason? Will it have any effect on the functioning of the system as everything seems normal.

thanks.


Traceback (most recent call last):
  File "/opt/indico/.venv/lib/python2.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/opt/indico/.venv/lib/python2.7/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/web/flask/util.py", line 82, in wrapper
    return obj().process()
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/web/rh.py", line 275, in process
    res = self._do_process()
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/web/rh.py", line 245, in _do_process
    rv = self._process()
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/modules/events/registration/controllers/management/invitations.py", line 77, in _process
    num).format(n=num), 'success')
IndexError: tuple index out of range

{u'data': {u'get': {'existing': u'1'},
           u'headers': {'Accept': u'application/json, text/javascript, */*; q=0.01',
                        'Accept-Encoding': u'gzip, deflate, br',
                        'Accept-Language': u'en-US,en;q=0.9',
                        'Connection': u'keep-alive',
                        'Content-Length': u'689',```

and also we have this
```2021-06-21 16:41:46,164  3d7b97fc5b6b44cb  1       indico.flask - ERROR errors.py:99 -- count

Traceback (most recent call last):
  File "/opt/indico/.venv/lib/python2.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/opt/indico/.venv/lib/python2.7/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/web/flask/util.py", line 82, in wrapper
    return obj().process()
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/web/rh.py", line 275, in process
    res = self._do_process()
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/web/rh.py", line 245, in _do_process
    rv = self._process()
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/modules/events/contributions/controllers/management.py", line 333, in _process
    flash(_("Subcontribution '{}' created successfully").format(subcontrib.title), 'success')
KeyError: u'count'

{u'data': {u'get': {},
           u'headers': {'Accept': u'application/json, text/javascript, */*; q=0.01',
                        'Accept-Encoding': u'gzip, deflate, br',
                        'Accept-Language': u'en-US,en;q=0.9',
                        'Connection': u'keep-alive',
                        'Content-Length': u'160',

Hi, is there any chance that you have an older translation file that contains some invalid placeholders?
Run this command to check and paste the output here:

grep -A1 "Subcontribution '{}' created successfully" ~/.venv/lib/python2.7/site-packages/indico/translations/*/LC_MESSAGES/messages.po