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

Performance regression in 11ebc6479f.
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
1 changed files with 1 additions and 1 deletions

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})