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

warn if handle_request returns dict #448

Closed
wants to merge 1 commit into from
Closed

warn if handle_request returns dict #448

wants to merge 1 commit into from

Conversation

AvdN
Copy link
Contributor

@AvdN AvdN commented Jul 25, 2023

This change puts a warning in the logger if a call to handle_request returns a dict instead of response object.

The warning references the file and line number of the "offending" handle_request method and a link
to the Response Objects documentation.

The code could be changed to output the warning only once, but that might make the warning go unnoticed.

--HG--
branch : warn_dict_retval
@AvdN AvdN closed this Jul 25, 2023
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