Better error handling on series display in basic view

This commit is contained in:
Ozzie Isaacs
2026-04-06 15:28:10 +02:00
parent 0ed4d81da2
commit 088778969d
2 changed files with 1 additions and 2 deletions

View File

@@ -19,7 +19,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from cps.pagination import Pagination
from flask import Blueprint
from flask_babel import gettext as _
from flask_babel import get_locale

View File

@@ -31,7 +31,7 @@
<h2>Details</h2>
{% if entry.series|length > 0 %}
<p>{{ _("Book %(index)s of %(range)s", index=entry.series_index | formatfloat(2), range=(entry.series[0].name)|safe) }}</p>
<p>{{ _("Book %(index)s of %(range)s", index=entry.series_index|formatfloat(2), range=entry.series[0].name|e) }}</p>
{% endif %}
{% if entry.languages|length > 0 %}