Skip to content

Commit

Permalink
Update ckanapi/cli/dump.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ian Ward <ian@excess.org>
  • Loading branch information
JVickery-TBS and wardi authored Aug 24, 2023
1 parent c00a25f commit fded3ce
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions ckanapi/cli/dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,12 @@ def dump_things(ckan, thing, arguments,
jsonl_output.write(compact_json(record,
sort_keys=True) + b'\n')
expecting_number += 1
if jsonl_output != stdout:
jsonl_output.close()
if 'pipe' in errors:
if jsonl_output != stdout:
jsonl_output.close()
return 1
if 'interrupt' in errors:
if jsonl_output != stdout:
jsonl_output.close()
return 2
if jsonl_output != stdout:
jsonl_output.close()


def dump_things_worker(ckan, thing, arguments,
Expand Down

0 comments on commit fded3ce

Please sign in to comment.