Commit 19a72d9
authored
Fix Exception that will occur later in course.
Exception will occur at time 4:15 in the video "User input and HTML forms: Getting the submitted values" of course "Building data-driven web apps with Flask and SQLAlchemy".
This exception happens because the flask.redirect() returns a werkzeug.wrappers.response.Response. The inserted condition will check for this response and return the redirect correctly. This fix likely needs to be added to other versions in the course files.
For more info, see email to Michael titled "please help: Exception in course 'building data-driven web apps...'" dated Sep 24, 2019, 1:48 PM.1 parent 0e593fe commit 19a72d9
File tree
1 file changed
+4
-0
lines changed- app/ch05_jinja_templates/final/pypi_org/infrastructure
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
0 commit comments