Skip to content

Commit b499185

Browse files
committed
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
1 parent 5a774d6 commit b499185

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

litecli/packages/special/dbcommands.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ def load_extension(cur: DBCursor, arg: str, **_: Any) -> None:
254254
conn = cur.connection
255255
conn.enable_load_extension(True)
256256
conn.load_extension(path)
257+
return [(None, None, None, "")]
257258

258259

259260
@special_command(

0 commit comments

Comments
 (0)