[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2025-10-03 08:56:06 +00:00
parent 26d5ee3eba
commit e196c93783
2 changed files with 6 additions and 3 deletions

View File

@@ -16,11 +16,11 @@ from .. import __version__, orm
from ..metrics import SERVER_POLL_DURATION_SECONDS, ServerPollStatus from ..metrics import SERVER_POLL_DURATION_SECONDS, ServerPollStatus
from ..scopes import describe_raw_scopes, needs_scope from ..scopes import describe_raw_scopes, needs_scope
from ..utils import ( from ..utils import (
format_exception,
maybe_future, maybe_future,
url_escape_path, url_escape_path,
url_path_join, url_path_join,
utcnow, utcnow,
format_exception,
) )
from .base import BaseHandler from .base import BaseHandler

View File

@@ -14,8 +14,11 @@
{% if for_user and user.name != for_user.name -%} {% if for_user and user.name != for_user.name -%}
<p>Spawning server for {{ for_user.name }}</p> <p>Spawning server for {{ for_user.name }}</p>
{% endif -%} {% endif -%}
{% if error_message %}<p class="spawn-error-msg alert alert-danger">Error: {{ error_message }}</p> {% if error_message %}
{% elif error_html_message %}<p class="spawn-error-msg alert alert-danger">{{ error_html_message | safe}}</p>{% endif %} <p class="spawn-error-msg alert alert-danger">Error: {{ error_message }}</p>
{% elif error_html_message %}
<p class="spawn-error-msg alert alert-danger">{{ error_html_message | safe }}</p>
{% endif %}
<form enctype="multipart/form-data" <form enctype="multipart/form-data"
id="spawn_form" id="spawn_form"
action="{{ url | safe }}" action="{{ url | safe }}"