Skip to content

index.rst: Simple Example shouldn't crash#58

Open
miiichael wants to merge 1 commit intoinveniosoftware:masterfrom
miiichael:patch-1
Open

index.rst: Simple Example shouldn't crash#58
miiichael wants to merge 1 commit intoinveniosoftware:masterfrom
miiichael:patch-1

Conversation

@miiichael
Copy link
Copy Markdown

Flask gets unhappy if routes don't return anything.

❤️ Thank you for your contribution!

Description

Single-line change to the first example. Avoids TypeError: The view function for 'index' did not return a valid response. The function either returned None or ended without a return statement. from Flask.

Checklist

Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:

Third-party code

If you've added third-party code (copy/pasted or new dependencies), please reach out to an architect.

Reminder

By using GitHub, you have already agreed to the GitHub’s Terms of Service including that:

  1. You license your contribution under the same terms as the current repository’s license.
  2. You agree that you have the right to license your contribution under the current repository’s license.

Flask gets unhappy if routes don't return anything.
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