Skip to content

Commit

Permalink
ninjs: Log error if failed to load json file
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkLark86 committed Oct 30, 2023
1 parent 5449820 commit 41ed337
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion superdesk/io/feed_parsers/ninjs.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ def can_parse(self, file_path):
ninjs = json.load(f)
if ninjs.get("uri") or ninjs.get("guid"):
return True
except Exception:
except Exception as err:
logger.exception(err)
logger.error("Failed to ingest json file")
pass
return False

Expand Down

0 comments on commit 41ed337

Please sign in to comment.