check for null

This commit is contained in:
aronwk-aaron 2023-11-10 00:09:07 -06:00
parent 5c2721cd65
commit 1c9ee91b78

View File

@ -188,6 +188,7 @@ def remove_buffs():
for char in chars:
character_xml = ET.XML(char.xml_data.replace("\"stt=", "\" stt="))
dest = character_xml.find(".//buff...")
if dest:
dest.remove(character_xml.find(".//buff"))
char.save()