[z3-five] Five.traversable masking errors in views
Alec Mitchell
apm13 at columbia.edu
Wed Nov 29 21:38:10 CET 2006
On 11/29/06, Chris Withers <chris at simplistix.co.uk> wrote:
> Hi All,
>
> Just been head scratching while trying to debug an AttributeError.
>
> I was getting an AttributeError on @@myviewname. It was only from
> pdb'ing through traversable.py that I found that the except clause in
> line 114 of traversable.py was swallowing an AttributeError and
> re-raising an attribute error on the view name :-(
>
> Is this really sane?
It's probably a good idea to fix this by saving the original exception
and raising it later if necessary. Even better would be if we could
discriminate between those attribute errors which are due to lookup
failures, and those that are de to code bugs, and raise the latter
immediately. Any ideas?
Alec
More information about the z3-five
mailing list