[ckan-changes] [okfn/ckan] c7cd7a: [2500] get_action now raises an exception on missi...

GitHub noreply at github.com
Thu Jun 21 13:21:25 UTC 2012


  Branch: refs/heads/defect-2500-get-action-missing
  Home:   https://github.com/okfn/ckan
  Commit: c7cd7a1e0740ed8983d868804989779b29a740a4
      https://github.com/okfn/ckan/commit/c7cd7a1e0740ed8983d868804989779b29a740a4
  Author: Ross Jones <rossdjones at gmail.com>
  Date:   2012-06-21 (Thu, 21 Jun 2012)

  Changed paths:
    M ckan/controllers/api.py
    M ckan/logic/__init__.py
    M ckan/tests/logic/test_action.py

  Log Message:
  -----------
  [2500] get_action now raises an exception on missing action

Previously get_action returned None for missing actions, but this led
to opaque errors in templates whereas now it raises an exception which is
clear in describing the problem.

Also lots of PEP8 cleanup of the non-test code.





More information about the ckan-changes mailing list