We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a299039 commit 2582e0dCopy full SHA for 2582e0d
1 file changed
iommi/code_finder.py
@@ -23,7 +23,8 @@ def setup_code_finder():
23
for node_class in [IncludeNode, ForNode, IfNode, TranslateNode, BlockTranslateNode]:
24
def debug_url_render(self, context, orig_render=node_class.render):
25
orig_result = orig_render(self, context)
26
- if '_iommi_code_finder' not in get_current_request().GET:
+ request = get_current_request()
27
+ if request and '_iommi_code_finder' not in request.GET:
28
return orig_result
29
30
# Get the file path and line number from the node's origin and token
0 commit comments