Skip to content

Commit

Permalink
Improve output
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Aug 12, 2024
1 parent 5d3c83b commit 5a139eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ogc/na/ingest_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ def process(input_files: str | Path | Sequence[str | Path],
if isinstance(input_files, str) or not isinstance(input_files, Sequence):
input_files = (input_files,)
if batch:
logger.info("Input files: %s", input_files)
logger.info("Input files: %s", [str(x) for x in input_files])
remaining_fn: deque = deque()
for input_file in input_files:
if isinstance(input_file, str):
Expand Down Expand Up @@ -735,6 +735,8 @@ def process(input_files: str | Path | Sequence[str | Path],
logger.warning("Error processing JSON/JSON-LD file, skipping: %s", getattr(e, 'msg', str(e)))
else:
raise
except Exception as e:
raise IOError(f'Error processing input file {fn}') from e
else:
for input_file in input_files:
try:
Expand Down

0 comments on commit 5a139eb

Please sign in to comment.