From 03d2c42c364c1ecb9cfad41f2fed777f5c5b4b33 Mon Sep 17 00:00:00 2001 From: Hoe Date: Wed, 24 Jul 2024 13:54:31 +0800 Subject: [PATCH] Fix crash when battle_gift is None --- titles/idac/season2.py | 1 + 1 file changed, 1 insertion(+) diff --git a/titles/idac/season2.py b/titles/idac/season2.py index cb43254..b6b949a 100644 --- a/titles/idac/season2.py +++ b/titles/idac/season2.py @@ -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