Ticket #3221: 3221_import_error.diff
File 3221_import_error.diff, 725 bytes (added by , 17 years ago) |
---|
-
django/core/urlresolvers.py
233 233 sub_match = pattern.resolve(new_path) 234 234 except Resolver404, e: 235 235 tried.extend([(pattern.regex.pattern + ' ' + t) for t in e.args[0]['tried']]) 236 except ImportError, e: 237 raise AttributeError('included urlpattern "%s" not found' % pattern.urlconf_name) 236 238 else: 237 239 if sub_match: 238 240 sub_match_dict = dict([(smart_str(k), v) for k, v in match.groupdict().items()])