[ckan-dev] suggestion: get_action exception

Ian Murray ian.c.murray at gmail.com
Thu Jun 7 12:31:53 UTC 2012


Ticket created: http://trac.ckan.org/ticket/2500

On 7 June 2012 13:15, David Read <david.read at hackneyworkshop.com> wrote:

> Hi CKAN devs,
>
> Can I request that ckan.logic.get_action raises an exception if the
> action requested doesn't exist?
>
> Two of us had a frustrating time tracking down an exception this
> morning. It's difficult when the exception is raised in python in a
> template because you don't get a line number. The problem was caused
> by a new logic function being added to another extension, and we
> hadn't updated the code there. So if get_action raised an proper
> exception rather than silently returning None then I think we'd have
> found the problem quicker.
>
> I'd write the code for this, but as I understand that the new system
> would require a ticket, branch, pull request, code review, merge. It
> seems a lot to do for such a small thing.
>
> Dave
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20120607/6b23dc89/attachment-0001.html>


More information about the ckan-dev mailing list