mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 15:03: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:
|
||||
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.
|
||||
|
Reference in New Issue
Block a user