From b4991857d4907bcac57b228c61fb1a497c1ab063 Mon Sep 17 00:00:00 2001 From: danielyan Date: Mon, 9 Feb 2026 20:06:28 +0000 Subject: [PATCH] Fix .load command failing with 'NoneType object not iterable' The load_extension() function was missing a return statement. All special commands must return a list of (title, rows, headers, status) tuples, but load_extension() returned None implicitly, causing the caller to fail when iterating over the result. Fixes #248 --- litecli/packages/special/dbcommands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litecli/packages/special/dbcommands.py b/litecli/packages/special/dbcommands.py index fbd2f12..1ffec7c 100644 --- a/litecli/packages/special/dbcommands.py +++ b/litecli/packages/special/dbcommands.py @@ -254,6 +254,7 @@ def load_extension(cur: DBCursor, arg: str, **_: Any) -> None: conn = cur.connection conn.enable_load_extension(True) conn.load_extension(path) + return [(None, None, None, "")] @special_command(