Skip to content

Commit bc45965

Browse files
fix writing jsonl
1 parent 0b7c365 commit bc45965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ipdata/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ def batch(ctx, input, fields, output, format, exclude):
449449
for result in bulk_result.get("responses", {}):
450450
progress.update(task, advance=1)
451451
if format == "JSON":
452-
output.write(f"{result}\n")
452+
output.write(f"{json.dumps(result)}\n")
453453
if format == "CSV":
454454
if not csv_writer:
455455
# create writer if none exists

0 commit comments

Comments
 (0)