Skip to content

Commit

Permalink
guard FFN
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Stokes <battlemidget@users.noreply.github.com>
  • Loading branch information
Adam Stokes committed May 11, 2020
1 parent 7c6a73d commit 24370fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jobs/reports/generate-reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,10 @@ def _download_metadata(item):
except json.decoder.JSONDecodeError:
return
log.info(f"Storing {prefix_id} metadata")
Path(f"metadatas/{prefix_id}-metadata.json").write_text(json.dumps(obj))
try:
Path(f"metadatas/{prefix_id}-metadata.json").write_text(json.dumps(obj))
except FileNotFoundError:
return

metadatas = Path("metadatas")
if not metadatas.exists():
Expand Down

0 comments on commit 24370fe

Please sign in to comment.