mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2024-11-22 05:27:25 +00:00
check for null
This commit is contained in:
parent
5c2721cd65
commit
1c9ee91b78
@ -188,7 +188,8 @@ def remove_buffs():
|
||||
for char in chars:
|
||||
character_xml = ET.XML(char.xml_data.replace("\"stt=", "\" stt="))
|
||||
dest = character_xml.find(".//buff...")
|
||||
dest.remove(character_xml.find(".//buff"))
|
||||
if dest:
|
||||
dest.remove(character_xml.find(".//buff"))
|
||||
char.save()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user