We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96f1d65 commit 8a925a0Copy full SHA for 8a925a0
ParseXmlFolder.py
@@ -22,7 +22,11 @@ def parse_xml_files_in_folder(folder_path):
22
23
# If it is a derived cluster
24
classification = root.find('classification')
25
- baseCluster = classification.get('baseCluster')
+ if classification is not None:
26
+ baseCluster = classification.get('baseCluster')
27
+ else:
28
+ baseCluster = None
29
+
30
31
# Find the clusterIds
32
clusterIds = root.find('clusterIds')
0 commit comments