[ckan-dev] Ckan Exceptions and translation

Toby Dacre toby.okfn at gmail.com
Tue Apr 16 14:17:59 UTC 2013


Hi,

I see code like this
    `raise Exception(_('some error'))`

I think these should be
    `raise Exception('some error')`

In my view Exceptions are for developers and log files etc so we should not
be pushing the Exception message to the user.  By using _ our error logs
will be in the language of the user who had the error not in English like
the code base.  This make support much more difficult.

This is a new thing that has started happening.  Can anyone justify this
change?  Can we stop doing it?

Toby
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130416/9b0a2956/attachment.html>


More information about the ckan-dev mailing list