From b430d4c54f9a505ff451fa7dae4b74da76ebb1c7 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 19 Jul 2005 14:47:41 +0000 Subject: [PATCH] Improved error message in urlresolvers.RegexURLResolver.resolve to use repr instead of str on app_path git-svn-id: http://code.djangoproject.com/svn/django/trunk@204 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/urlresolvers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/urlresolvers.py b/django/core/urlresolvers.py index 80a390e6c1..b5cdccb730 100644 --- a/django/core/urlresolvers.py +++ b/django/core/urlresolvers.py @@ -82,7 +82,7 @@ class RegexURLResolver: if match: return match # None of the regexes matched, so raise a 404. - raise Http404, "Tried all URL patterns but didn't find a match for %s" % app_path + raise Http404, "Tried all URL patterns but didn't find a match for %r" % app_path class Error404Resolver: def __init__(self, callback):