Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle missing subsegment when rendering a Django template #54

Merged
merged 1 commit into from
Apr 30, 2018

Conversation

garyd203
Copy link
Contributor

Description of changes:
If I render a template without having a current segment (eg. when executing a test case), then we get an error when we try to update the name of the nonexistent subsegment.

In other places we deal with this scenario by checking for an empty subsegment, which makes sense - ideally, tracing should fail silently. This change brings the Django template rendering interceptor inline with that practice.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@haotianw465 haotianw465 merged commit 59bd2d0 into aws:master Apr 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants