Skip to content

Commit 54d6ec2

Browse files
committed
Formatting change to make the linter happy.
1 parent a3b062b commit 54d6ec2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

debug_toolbar/toolbar.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ def is_toolbar_request(cls, request):
146146
# The primary caller of this function is in the middleware which may
147147
# not have resolver_match set.
148148
try:
149-
resolver_match = request.resolver_match or resolve(request.path, getattr(request, 'urlconf', None))
149+
resolver_match = request.resolver_match or resolve(
150+
request.path, getattr(request, "urlconf", None)
151+
)
150152
except Resolver404:
151153
return False
152154
return resolver_match.namespaces and resolver_match.namespaces[-1] == app_name

0 commit comments

Comments
 (0)