From e196c937836bb07d5f8aa9fb71ba67532ea094a5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 3 Oct 2025 08:56:06 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- jupyterhub/handlers/pages.py | 2 +- share/jupyterhub/templates/spawn.html | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/jupyterhub/handlers/pages.py b/jupyterhub/handlers/pages.py index 9d5131c0..eff4a458 100644 --- a/jupyterhub/handlers/pages.py +++ b/jupyterhub/handlers/pages.py @@ -16,11 +16,11 @@ from .. import __version__, orm from ..metrics import SERVER_POLL_DURATION_SECONDS, ServerPollStatus from ..scopes import describe_raw_scopes, needs_scope from ..utils import ( + format_exception, maybe_future, url_escape_path, url_path_join, utcnow, - format_exception, ) from .base import BaseHandler diff --git a/share/jupyterhub/templates/spawn.html b/share/jupyterhub/templates/spawn.html index 86f8ec15..f8d4b4ad 100644 --- a/share/jupyterhub/templates/spawn.html +++ b/share/jupyterhub/templates/spawn.html @@ -14,8 +14,11 @@ {% if for_user and user.name != for_user.name -%}
Spawning server for {{ for_user.name }}
{% endif -%} - {% if error_message %}Error: {{ error_message }}
- {% elif error_html_message %}{{ error_html_message | safe}}
{% endif %} + {% if error_message %} +Error: {{ error_message }}
+ {% elif error_html_message %} +{{ error_html_message | safe }}
+ {% endif %}