Skip to content

Avoid calls to context.detach with None token #3673

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

andremm
Copy link
Contributor

@andremm andremm commented Aug 4, 2025

Description

This PR is guarding calls to context.detach with if token: to make sure these calls are using a token that is not None.

Fixes #3351

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@andremm andremm requested a review from a team as a code owner August 4, 2025 19:50
@tammy-baylis-swi
Copy link
Contributor

Overall lgtm! Please could you add a changelog entry.

@andremm
Copy link
Contributor Author

andremm commented Aug 8, 2025

@tammy-baylis-swi thanks for your review! I added a change a changelog entry.

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.

Evaluate None token passed to context.detach
3 participants