Code

Ticket #10834: 10834r11126.diff

File 10834r11126.diff, 588 bytes (added by ccahoon, 5 years ago)

Updated to pass regression tests.

Line 
1Index: django/core/urlresolvers.py
2===================================================================
3--- django/core/urlresolvers.py (revision 11126)
4+++ django/core/urlresolvers.py (working copy)
5@@ -195,7 +195,7 @@
6                         return sub_match[0], sub_match[1], sub_match_dict
7                     tried.append(pattern.regex.pattern)
8             raise Resolver404, {'tried': tried, 'path': new_path}
9-        raise Resolver404, {'tried': [], 'path' : path}
10+        raise Resolver404, {'tried': [path], 'path' : path}
11 
12     def _get_urlconf_module(self):
13         try: