From: Nathan Williams Date: Wed, 19 Oct 2022 22:29:21 +0000 (-0700) Subject: Fix knowledge_graph CI. (#5436) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ec012b62b261542f733caf7fc8575b021c42a64;p=thirdparty%2Fgoogle%2Ffonts.git Fix knowledge_graph CI. (#5436) --- diff --git a/.github/workflows/knowledge_graph.py b/.github/workflows/knowledge_graph.py index d37e057c6b..c6a7070c94 100644 --- a/.github/workflows/knowledge_graph.py +++ b/.github/workflows/knowledge_graph.py @@ -257,10 +257,10 @@ def _check_image_files(knowledge: KnowledgeContent) -> bool: has_view_box = "viewBox" in root.attributes has_width_and_height = "width" in root.attributes and "height" in root.attributes if not has_view_box and not has_width_and_height: - print("Must specify viewBox and/or width+height on :", image_file.relative_to(knowledge_dir)) + print("Must specify viewBox and/or width+height on :", image_file.relative_to(knowledge.knowledge_dir)) result = False if image_file.suffix != ".svg" and image_file.stat().st_size > MAX_IMAGE_SIZE_KB * 1024: - print("File exceeds max size of %s KB:" % MAX_IMAGE_SIZE_KB, image_file.relative_to(knowledge_dir)) + print("File exceeds max size of %s KB:" % MAX_IMAGE_SIZE_KB, image_file.relative_to(knowledge.knowledge_dir)) result = False return result