Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Improved error message in urlresolvers.RegexURLResolver.resolve to us…

…e repr instead of str on app_path

git-svn-id: http://code.djangoproject.com/svn/django/trunk@204 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b430d4c54f9a505ff451fa7dae4b74da76ebb1c7 1 parent 7fa7626
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/urlresolvers.py
View
2  django/core/urlresolvers.py
@@ -82,7 +82,7 @@ def resolve(self, app_path):
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):
Please sign in to comment.
Something went wrong with that request. Please try again.