Skip to content

Commit 2c196d7

Browse files
authored
Merge pull request talkpython#6 from FEsmondeWhite/patch-1
Fix Exception that will occur later in course.
2 parents 0e593fe + 19a72d9 commit 2c196d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/ch05_jinja_templates/final/pypi_org/infrastructure/view_modifiers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ def response_inner(f):
1010
@wraps(f)
1111
def view_method(*args, **kwargs):
1212
response_val = f(*args, **kwargs)
13+
14+
if isinstance(response_val, werkzeug.wrappers.response.Response):
15+
return response_val
16+
1317
if isinstance(response_val, flask.Response):
1418
return response_val
1519

0 commit comments

Comments
 (0)