[ckan-changes] [ckan/ckan] 4daac8: [#3282] Fix exception when requesting /e or /n
GitHub
noreply at github.com
Fri Oct 21 14:13:03 UTC 2016
Branch: refs/heads/3282-bug-in-locale-list
Home: https://github.com/ckan/ckan
Commit: 4daac8bd5bbc7ed8a8cb3375529433ed4c5cc662
https://github.com/ckan/ckan/commit/4daac8bd5bbc7ed8a8cb3375529433ed4c5cc662
Author: amercader <amercadero at gmail.com>
Date: 2016-10-21 (Fri, 21 Oct 2016)
Changed paths:
M ckan/lib/i18n.py
Log Message:
-----------
[#3282] Fix exception when requesting /e or /n
Fixes #3282
Due to a bug in how we construct the list of available locales in
`get_locales_from_config` we ended up with `e` and `n` in it. If you
actually requested a URL with /e/ as the lang code you got an exception
because Pylons raised a `LanguageError` when trying to access the `e` or
`n` language files.
More information about the ckan-changes
mailing list