From 1ea89f84571ef3ed3679150c1ba18dda7aaf6529 Mon Sep 17 00:00:00 2001 From: sctop <2094880085@qq.com> Date: Sun, 24 Mar 2024 13:58:31 +0800 Subject: [PATCH] 2024-03-24 13:58 quick bugfix --- data | 2 +- data_model/actual_data/_story/story_part_auto.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/data b/data index 9761bc1..cc5a598 160000 --- a/data +++ b/data @@ -1 +1 @@ -Subproject commit 9761bc1cd4801f5140e2f6bb0772ea82b16e8db6 +Subproject commit cc5a5987b5b026bac6ae76375f6ff35b999a4666 diff --git a/data_model/actual_data/_story/story_part_auto.py b/data_model/actual_data/_story/story_part_auto.py index 1bb100b..11b9e62 100644 --- a/data_model/actual_data/_story/story_part_auto.py +++ b/data_model/actual_data/_story/story_part_auto.py @@ -64,7 +64,11 @@ def load(self): self.data_all.load() # pre-process - del self.data["track_to_bg"]["OST_0"] + try: + del self.data["track_to_bg"]["OST_0"] + except KeyError: + # it's okay if it doesn't exist + pass # track to bg for (track_id, bgs) in self.data["track_to_bg"].items():