v2.26.5: fix database errors crashing entire UI (#190)

get_setting() now catches sqlite3.OperationalError and returns the
default value. Previously, an inaccessible database (e.g. root-owned
instance/ from sudo) caused inject_offline_settings to crash every
page render with 500 Internal Server Error.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-03-14 15:49:29 +00:00
parent faf57741a1
commit 2bbf896e7c
4 changed files with 44 additions and 26 deletions

View File

@@ -7,10 +7,17 @@ import os
import sys
# Application version
VERSION = "2.26.4"
VERSION = "2.26.5"
# Changelog - latest release notes (shown on welcome screen)
CHANGELOG = [
{
"version": "2.26.5",
"date": "March 2026",
"highlights": [
"Fix database errors crashing the entire UI — pages now degrade gracefully",
]
},
{
"version": "2.26.4",
"date": "March 2026",