We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c583b5 commit 59bd2d0Copy full SHA for 59bd2d0
1 file changed
aws_xray_sdk/ext/django/templates.py
@@ -23,7 +23,8 @@ def xray_render(self, context):
23
if template_name:
24
name = str(template_name)
25
subsegment = xray_recorder.current_subsegment()
26
- subsegment.name = name
+ if subsegment:
27
+ subsegment.name = name
28
29
return Template._xray_original_render(self, context)
30
0 commit comments