mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 15:33:02 +00:00
typo catching 404 in proxy.delete_route
status code is .code, not .status_code
This commit is contained in:
@@ -602,7 +602,7 @@ class ConfigurableHTTPProxy(Proxy):
|
|||||||
try:
|
try:
|
||||||
await self.api_request(path, method='DELETE')
|
await self.api_request(path, method='DELETE')
|
||||||
except HTTPError as e:
|
except HTTPError as e:
|
||||||
if e.status_code == 404:
|
if e.code == 404:
|
||||||
# Warn about 404s because something might be wrong
|
# Warn about 404s because something might be wrong
|
||||||
# but don't raise because the route is gone,
|
# but don't raise because the route is gone,
|
||||||
# which is the goal.
|
# which is the goal.
|
||||||
|
Reference in New Issue
Block a user