diff --git a/xUnique.py b/xUnique.py index de6cf42..8162627 100755 --- a/xUnique.py +++ b/xUnique.py @@ -359,9 +359,12 @@ def __unique_project(self, project_hex): bcl_hex = self.root_node['buildConfigurationList'] self.__unique_build_configuration_list(project_hex, bcl_hex) - package_references_list = self.root_node['packageReferences'] - for package_reference_hex in package_references_list: - self.__unique_package_reference(project_hex, package_reference_hex) + try: + package_references_list = self.root_node['packageReferences'] + for package_reference_hex in package_references_list: + self.__unique_package_reference(project_hex, package_reference_hex) + except KeyError: + pass subprojects_list = self.root_node.get('projectReferences') if subprojects_list: