mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-24 09:54:31 +02:00
--nl now ignores blank lines, closes #376
This commit is contained in:
parent
2f8879235a
commit
d2a79d200f
2 changed files with 2 additions and 2 deletions
|
|
@ -791,7 +791,7 @@ def insert_upsert_implementation(
|
|||
else:
|
||||
try:
|
||||
if nl:
|
||||
docs = (json.loads(line) for line in decoded)
|
||||
docs = (json.loads(line) for line in decoded if line.strip())
|
||||
else:
|
||||
docs = json.load(decoded)
|
||||
if isinstance(docs, dict):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue