On Aug 24, 4:40 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Sat, Aug 23, 2008 at 2:43 PM, mrts <[EMAIL PROTECTED]> wrote:
> >http://code.djangoproject.com/ticket/8221 was closed as duplicate of
> > #7524, which it is not.
>
> In triaging, I'm trying to take the position that all of the various
> "Django looks for an exception and accidentally swallows some other
> exception" tickets are really the same issue and should all be dealt
> with together, rather than being attacked piecemeal.

That argument pertains to #7524 and to only *half* of #8221 -- the
except (ImportError, AttributeError): raise NoReverseMatch("Error
importing '%s': %s." % (viewname, e)) bits in there. A general
agreement is indeed needed (e.g. what to do with the original
backtrace), but IMHO this should be in scope for 1.0.

The other half is different, although in the same spirit of "try to
provide all available information that helps to solve the problem" --
raise NoReverseMatch("Reverse for '%s' with arguments '%s' and keyword
arguments '%s' not found." % (lookup_view, args, kwargs)). This helped
me to track down an invalid slug that had slipped into an article
database. The article index view was dying with NoReverseMatch and I
had no clue why (everything *looked* OK) -- found it only after
patching my Django checkout with this.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to