mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2024-11-09 11:48:20 +00:00
check for null
This commit is contained in:
parent
5c2721cd65
commit
1c9ee91b78
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user