1
0
mirror of https://github.com/django/django.git synced 2025-02-07 16:05:34 +00:00

Refs #31791 -- Improved performance of URLResolver.resolve().

Performance regression in 11ebc6479ffda87376b60c9475d33d8120f86368.
This commit is contained in:
David Smith 2021-01-11 06:49:01 +00:00 committed by GitHub
parent 4794a0e35f
commit 622fcb8119
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -581,7 +581,7 @@ class URLResolver:
self._join_route(current_route, sub_match.route),
tried,
)
self._extend_tried(tried, pattern)
tried.append([pattern])
raise Resolver404({'tried': tried, 'path': new_path})
raise Resolver404({'path': path})