Then thats a failed test isn't it? Its not working correctly, and it
SHOULD break. Except in this case you expect that? I don't see the
problem with that. If you don't want it to work, comment it out.
diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py
index 489faa2..03f4669 100644
--- a/django/template/defaulttags.py
+++ b/django/template/defaulttags.py
@@ -363,10 +363,13 @@ class URLNode(Node):
for k, v in self.kwargs.items()])
try:
return reverse(self.view_name, args=args, kwargs=kwargs)
- except NoReverseMatch:
- project_name = settings.SETTINGS_MODULE.split('.')[0]
- return reverse(project_name + '.' + self.view_name,
- args=args, kwargs=kwargs)
+ except NoReverseMatch, e1:
+ try:
+ project_name = settings.SETTINGS_MODULE.split('.')[0]
+ return reverse(project_name + '.' + self.view_name,
+ args=args, kwargs=kwargs)
+ except NoReverseMatch, e2:
+ raise e1
class WidthRatioNode(Node):
def __init__(self, val_expr, max_expr, max_width):
I'm afraid you guys would have to remove too smart functionality
trying to add settings path, or i'd suggest to make 2 different
exceptions: one for NoReverseMatch (long-circuit), second for
ReverseMatchFailed (short-circuit).
--
Best regards, Yuri V. Baburov, ICQ# 99934676, Skype: yuri.baburov,
MSN: bu...@live.com
The ticket is open. It will either be committed, postponed or closed as
a dupe of something else. Let's leave it at that and get some other work
done in the interim.
Malcolm
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.
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."