Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix a typo

Marek Brzóska11b74cd537aa
diff --git a/saleor/middleware.py b/saleor/middleware.py
index f795815c31..c8a4a98495 100644
--- a/saleor/middleware.py
+++ b/saleor/middleware.py
@@ -11,7 +11,7 @@ class CheckHTML(object):
if (
settings.DEBUG
and settings.WARN_ABOUT_INVALID_HTML5_OUTPUT
- and 200 <= response.status.code < 300
+ and 200 <= response.status_code < 300
):
proc = Popen(["tidy"], stdout=PIPE, stderr=PIPE, stdin=PIPE)
_out, err = proc.communicate(response.content)