Fix crash when battle_gift is None

This commit is contained in:
Hoe 2024-07-24 13:54:31 +08:00
parent d039638a16
commit 03d2c42c36

View File

@ -1356,6 +1356,7 @@ class IDACSeason2(IDACBase):
"point": timetrial["point"],
}
battle_gift_data = {}
# check if the battle gift event is active
if ver_str in self.battle_gift_event_id:
# get the users battle gifts, for the current active battle gift event