Skip to content

Commit a967dca

Browse files
ES-Alexanderpatrickelectric
authored andcommitted
blueos_repository: extension: stop trying to parse docs links as json5
1 parent 957a87b commit a967dca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

blueos_repository/extension/extension.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ async def __create_version_from_tag_blob(self, version_tag: Tag, blob: Blob) ->
157157
links = json5.loads(labels.get("links", "{}"))
158158
filter_tags = json5.loads(labels.get("tags", "[]"))
159159

160-
docs_raw = links.pop("docs", links.pop("documentation", labels.get("docs", None)))
160+
docs_link = links.pop("docs", links.pop("documentation", labels.get("docs", None)))
161161
company_raw = labels.get("company", None)
162162
permissions_raw = labels.get("permissions", None)
163163

@@ -194,7 +194,7 @@ async def __create_version_from_tag_blob(self, version_tag: Tag, blob: Blob) ->
194194
extra_links=links,
195195
authors=json5.loads(authors),
196196
filter_tags=ExtensionVersion.validate_filter_tags(filter_tags),
197-
docs=json5.loads(docs_raw) if docs_raw else None,
197+
docs=docs_link,
198198
company=json5.loads(company_raw) if company_raw else None,
199199
permissions=json5.loads(permissions_raw) if permissions_raw else None,
200200
images=self.__extract_images_from_tag(version_tag),

0 commit comments

Comments
 (0)