From 24f307130cfb512840a67142524b58c25e4ed780 Mon Sep 17 00:00:00 2001 From: AToradaIBIM <98612825+AToradaIBIM@users.noreply.github.com> Date: Wed, 25 May 2022 11:10:19 +0200 Subject: [PATCH] BCFv3 "get_comments" error #2212 Fix for Issue #2212 The method get_comments wasn't working as expected because on line 649, it was trying to access the element "Topics" instead of "Topic", based on the XSD "Topics" doesn't exist. --- src/bcf/src/bcf/v3/bcfxml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bcf/src/bcf/v3/bcfxml.py b/src/bcf/src/bcf/v3/bcfxml.py index 429bb2258a..0aa5925bdf 100644 --- a/src/bcf/src/bcf/v3/bcfxml.py +++ b/src/bcf/src/bcf/v3/bcfxml.py @@ -646,7 +646,7 @@ class BcfXml: def get_comments(self, guid): comments = {} data = self._read_xml(os.path.join(guid, "markup.bcf"), "markup.xsd") - if "Comments" not in data["Topics"]: + if "Comments" not in data["Topic"]: return comments for item in data["Topic"]["Comments"].get("Comment", []):