[ckan-changes] [okfn/ckan] 98508d: [#1011] Fix a broken import in the package control...

GitHub noreply at github.com
Mon Aug 26 14:16:54 UTC 2013


  Branch: refs/heads/1011-template-not-found
  Home:   https://github.com/okfn/ckan
  Commit: 98508d1a67b0ec0a86a1786988f3195d6535f2be
      https://github.com/okfn/ckan/commit/98508d1a67b0ec0a86a1786988f3195d6535f2be
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2013-08-26 (Mon, 26 Aug 2013)

  Changed paths:
    M ckan/controllers/package.py

  Log Message:
  -----------
  [#1011] Fix a broken import in the package controller

An exception was not getting caught because of the way this import was
done.


  Commit: 2d3bcdd7a04b27be135045cf388ef9c983a3c16a
      https://github.com/okfn/ckan/commit/2d3bcdd7a04b27be135045cf388ef9c983a3c16a
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2013-08-26 (Mon, 26 Aug 2013)

  Changed paths:
    M ckan/lib/base.py

  Log Message:
  -----------
  [#1011] base.py: Explicitly re-raise TemplateNotFound

Functions should not implicitly raise exceptions by failing to catch
exceptions raised by functions that they call, they should explicitly
catch and re-raise the exceptions instead.


  Commit: c136aac9c65fcde7c03a2e1c7a9e88e4b5b2f595
      https://github.com/okfn/ckan/commit/c136aac9c65fcde7c03a2e1c7a9e88e4b5b2f595
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2013-08-26 (Mon, 26 Aug 2013)

  Changed paths:
    M ckan/controllers/template.py

  Log Message:
  -----------
  [#1011] Update some exception handling in template.py

Catch the new ckan.lib.render.TemplateNotFound exception that render()
now raises, not the Genshi exception it used to.


Compare: https://github.com/okfn/ckan/compare/b9f965427ba8...c136aac9c65f


More information about the ckan-changes mailing list