Fixes inject_client
in scenarios where the client
kwarg is passed None
#6942
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Example
Got a report of failures saving blocks from the Slack community. Blocks could be saved outside of flows, but not within flows. Root cause seems to be that
inject_client
was working when creating a new client, but not when retrieving an existing one for functions that had a default value ofNone
due tosetdefault
behavior. This change popsclient
fromkwargs
in all scenarios to allowsetdefault
to do it's thing.Closes #6940
Checklist
<link to issue>
"fix
,feature
,enhancement