diff --git a/pyro/PackageManager.py b/pyro/PackageManager.py index 1138aec9..474542c4 100644 --- a/pyro/PackageManager.py +++ b/pyro/PackageManager.py @@ -68,7 +68,7 @@ def _match(root_dir: str, file_pattern: str, *, exclude_pattern: str = '', user_ def _generate_include_paths(includes_node: etree.ElementBase, root_path: str, zip_mode: bool = False) -> typing.Generator: for include_node in filter(is_include_node, includes_node): attr_no_recurse: bool = include_node.get(XmlAttributeName.NO_RECURSE) == 'True' - attr_path: str = (include_node.get(XmlAttributeName.PATH) or '').strip() + attr_path: str = include_node.get(XmlAttributeName.PATH).strip() search_path: str = include_node.text if not search_path: @@ -128,11 +128,7 @@ def _generate_include_paths(includes_node: etree.ElementBase, root_path: str, zi for match_node in filter(is_match_node, includes_node): attr_in: str = match_node.get(XmlAttributeName.IN).strip() attr_no_recurse: bool = match_node.get(XmlAttributeName.NO_RECURSE) == 'True' - attr_exclude: str = (match_node.get(XmlAttributeName.EXCLUDE) or '').strip() - - if not attr_in: - PackageManager.log.error(f'"In" attribute of "Match" tag at line {match_node.sourceline} in project file is empty') - sys.exit(1) + attr_exclude: str = match_node.get(XmlAttributeName.EXCLUDE).strip() in_path: str = os.path.normpath(attr_in) diff --git a/pyro/PapyrusProject.py b/pyro/PapyrusProject.py index 55c11a9b..50009c91 100644 --- a/pyro/PapyrusProject.py +++ b/pyro/PapyrusProject.py @@ -304,9 +304,6 @@ def _update_attributes(self, parent_node: etree.ElementBase) -> None: if node.text: node.text = self.parse(node.text.strip()) - if not node.attrib: - continue - tag = node.tag.replace('{%s}' % self.ppj_root.ns, '') if tag == XmlTagName.PAPYRUS_PROJECT: