From c965a5f8daeb983eadba0b2a14076dabca07c828 Mon Sep 17 00:00:00 2001 From: "Aaron D. Lee" Date: Sun, 4 Jan 2026 20:01:30 -0500 Subject: [PATCH] Fix channel_fingerprint None check in templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Handle case where channel_fingerprint is None when no channel key is configured, preventing TypeError on encode/decode pages. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- frontends/web/templates/decode.html | 4 ++-- frontends/web/templates/encode.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontends/web/templates/decode.html b/frontends/web/templates/decode.html index 88667ac..a5905c8 100644 --- a/frontends/web/templates/decode.html +++ b/frontends/web/templates/decode.html @@ -362,8 +362,8 @@ -
- {% if channel_configured %} +
+ {% if channel_configured and channel_fingerprint %} Server: {{ channel_fingerprint[:4] }}-••••-···-••••-{{ channel_fingerprint[-4:] }} {% endif %} diff --git a/frontends/web/templates/encode.html b/frontends/web/templates/encode.html index ff88a91..e257873 100644 --- a/frontends/web/templates/encode.html +++ b/frontends/web/templates/encode.html @@ -429,8 +429,8 @@ -
- {% if channel_configured %} +
+ {% if channel_configured and channel_fingerprint %} Server: {{ channel_fingerprint[:4] }}-••••-···-••••-{{ channel_fingerprint[-4:] }} {% endif %}