Skip to content

Conversation

@daniel7an
Copy link

Fix

The .load command's load_extension() function in dbcommands.py was missing a return statement. All special commands must return a list of (title, rows, headers, status) tuples, but load_extension() implicitly returned None, causing the caller to fail with 'NoneType' object is not iterable when iterating over the result.

Added the missing return [(None, None, None, "")] statement.

Fixes #248

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 dbcli#248
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.load fails with NoneType object not iterable

1 participant