flask-breadcrumbs
flask-breadcrumbs copied to clipboard
index.rst: Simple Example shouldn't crash
Flask gets unhappy if routes don't return anything.
:heart: 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:
- [X] I'm aware of the code of conduct.
- [X] I've created logical separate commits and followed the commit message format.
- [N/A] I've added relevant test cases.
- [N/A] I've added relevant documentation.
- [N/A] I've marked translation strings (for relevant code).
- [N/A] I've followed the CSS/JS and React guidelines (for relevant code).
- [N/A] I've followed the web accessibility guidelines (for relevant code).
- [N/A] I've followed the user interface guidelines (for relevant code).
- [N/A] I've identified the copyright holder(s) and updated copyright headers for touched files (>15 lines contributions).
- [X] I've NOT included third-party code (copy/pasted source code or new dependencies).
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:
- You license your contribution under the same terms as the current repository’s license.
- You agree that you have the right to license your contribution under the current repository’s license.