Skip to content

Throw exception when calling response.success()/.failure() if with-block has not been entered#1955

Merged
cyberw merged 4 commits intomasterfrom
throw-exception-on-missing-with-block
Dec 8, 2021
Merged

Throw exception when calling response.success()/.failure() if with-block has not been entered#1955
cyberw merged 4 commits intomasterfrom
throw-exception-on-missing-with-block

Conversation

@cyberw
Copy link
Copy Markdown
Collaborator

@cyberw cyberw commented Dec 8, 2021

For when catch_response=True is set, but someone forgot to do a with-block...

… without using a with block. Committing tests-first for validation.
@cyberw cyberw force-pushed the throw-exception-on-missing-with-block branch 3 times, most recently from 5c0b397 to 3499230 Compare December 8, 2021 10:30
…s() without using a with block (helps with some misunderstandings, e.g. #1953)
@cyberw cyberw force-pushed the throw-exception-on-missing-with-block branch from 3499230 to ceb2cf2 Compare December 8, 2021 10:42
@cyberw cyberw merged commit 581e1de into master Dec 8, 2021
@cyberw cyberw deleted the throw-exception-on-missing-with-block branch March 22, 2022 10:19
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.

1 participant