typo catching 404 in proxy.delete_route

status code is .code, not .status_code
This commit is contained in:
Min RK
2018-04-13 20:54:15 +02:00
parent dace6ac156
commit afbf867169

View File

@@ -602,7 +602,7 @@ class ConfigurableHTTPProxy(Proxy):
try:
await self.api_request(path, method='DELETE')
except HTTPError as e:
if e.status_code == 404:
if e.code == 404:
# Warn about 404s because something might be wrong
# but don't raise because the route is gone,
# which is the goal.