Skip to content

Commit 7ec24b1

Browse files
committed
Fix bug in parsing matstudio xsd file.
1 parent c1d51fa commit 7ec24b1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

vaspy/matstudio.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,10 @@ def get_name_info(self):
202202
"""
203203
# Get info string.
204204
for elem in self.tree.iter("SymmetrySystem"):
205-
info = elem.attrib["Name"]
205+
info = elem.attrib.get('Name')
206+
if info is None:
207+
self.__logger.warning('No Name attribute in SymmetrySystem')
208+
return
206209
break
207210

208211
# Get thermo data.

0 commit comments

Comments
 (0)