[ckan-changes] [okfn/ckan] ef7361: Set default value to fix 500 on search error

GitHub noreply at github.com
Tue Jan 8 20:05:38 UTC 2013


  Branch: refs/heads/master
  Home:   https://github.com/okfn/ckan
  Commit: ef736117a1303d905497bee1cc032ad4399ad02e
      https://github.com/okfn/ckan/commit/ef736117a1303d905497bee1cc032ad4399ad02e
  Author: Stefan Wehrmeyer <mail at stefanwehrmeyer.com>
  Date:   2013-01-08 (Tue, 08 Jan 2013)

  Changed paths:
    M ckan/controllers/package.py

  Log Message:
  -----------
  Set default value to fix 500 on search error

The except code should set the default value for
the coming code, but c.search_facets was not
initialized properly and c.search_facets.keys()
would fail. The whole section should be refactored
to a smaller try-except-block.





More information about the ckan-changes mailing list