Skip to content

Commit 5496d42

Browse files
authored
Merge pull request #33 from michael555444/_Router__name-fix
Remove arg name on call self.router.url_path_for()
2 parents db8a667 + 1e70e2c commit 5496d42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

debug_toolbar/middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self, app: ASGIApp, **settings: t.Any) -> None:
3636
while not isinstance(self.router, APIRouter):
3737
self.router = self.router.app
3838
try:
39-
self.router.url_path_for(name="debug_toolbar.render_panel")
39+
self.router.url_path_for("debug_toolbar.render_panel")
4040
except NoMatchFound:
4141
self.init_toolbar()
4242

0 commit comments

Comments
 (0)