Skip to content

Commit

Permalink
Avoid error when parsing empty metadata in import_all.get_page()
Browse files Browse the repository at this point in the history
  • Loading branch information
giancarloaf committed Aug 29, 2022
1 parent 5b6740d commit d9f0170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/import_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def get_page(max_content_size, file_name, har):
"lighthouse": lighthouse,
"features": features,
"technologies": technologies,
"metadata": to_json(metadata),
"metadata": to_json(metadata) if metadata else None,
}

if json_exceeds_max_content_size(ret, max_content_size, "pages", wptid):
Expand Down

0 comments on commit d9f0170

Please sign in to comment.