From 8f523e08814abc906587553e849d642178b3ed1d Mon Sep 17 00:00:00 2001 From: dyceron Date: Tue, 24 Dec 2024 09:16:04 -0500 Subject: [PATCH] Rename KeyError messages --- src/mercury_engine_data_structures/formats/bmtun.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mercury_engine_data_structures/formats/bmtun.py b/src/mercury_engine_data_structures/formats/bmtun.py index 14606f2..ee422ed 100644 --- a/src/mercury_engine_data_structures/formats/bmtun.py +++ b/src/mercury_engine_data_structures/formats/bmtun.py @@ -52,9 +52,9 @@ def construct_class(cls, target_game: Game) -> Construct: def _check_tunable_exists(self, class_name: str, tunable_name: str) -> None: classes = self.raw.classes if class_name not in classes: - raise KeyError(f"Unknown tunable: {class_name}!") + raise KeyError(f"Unknown class name: {class_name}!") if tunable_name not in classes[class_name].tunables: - raise KeyError(f"Unknown tunable param: {tunable_name}!") + raise KeyError(f"Unknown tunable name: {tunable_name}!") Tunable = str | float | bool | int | list[float]