mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-07 10:04:07 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
@@ -856,7 +856,9 @@ class BaseHandler(RequestHandler):
|
||||
|
||||
if server_name:
|
||||
if '/' in server_name:
|
||||
error_message = f"Invalid server_name (may not contain '/'): {server_name}"
|
||||
error_message = (
|
||||
f"Invalid server_name (may not contain '/'): {server_name}"
|
||||
)
|
||||
self.log.error(error_message)
|
||||
raise web.HTTPError(400, error_message)
|
||||
user_server_name = f'{user.name}:{server_name}'
|
||||
|
Reference in New Issue
Block a user