Skip to content

Index error in BridgeDB HTTPS distributor

I saw the following error while looking at BridgeDB logs:

14:09:51 ERROR    L143:server.replaceErrorPag() Error while attempting to render te
mplate: 

Traceback (most recent call last):
  File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-packages/bridgedb-0.
12.2+0.gee08b6b1.dirty-py3.7.egg/bridgedb/distributors/https/server.py", line 405, 
in render_GET
    langs = translations.getLocaleFromHTTPRequest(request)
  File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-packages/bridgedb-0.
12.2+0.gee08b6b1.dirty-py3.7.egg/bridgedb/translations.py", line 98, in getLocaleFr
omHTTPRequest
    installTranslations(langs)
  File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.7/site-packages/bridgedb-0.
12.2+0.gee08b6b1.dirty-py3.7.egg/bridgedb/translations.py", line 145, in installTra
nslations
    languages=[langs[0]], fallback=True)
IndexError: list index out of range