From 4a7fa1df08a2289a6c6ab2cf2a444040891b8dd1 Mon Sep 17 00:00:00 2001 From: pablorevilla-meshtastic Date: Fri, 13 Feb 2026 14:20:12 -0800 Subject: [PATCH] fix error for sqlite --- startdb.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/startdb.py b/startdb.py index 08098d6..32b8c90 100644 --- a/startdb.py +++ b/startdb.py @@ -239,7 +239,6 @@ async def load_database_from_mqtt( # ------------------------- async def main(): check_optional_deps() - await mqtt_store.load_gateway_cache() logger = logging.getLogger(__name__) # Initialize database @@ -268,6 +267,9 @@ async def main(): await mqtt_database.create_tables() logger.info("Database tables created") + # Load MQTT gateway cache after DB init/migrations + await mqtt_store.load_gateway_cache() + finally: # Clear migration in progress flag logger.info("Clearing migration status...")