From ec304fd07d500241bfe49faa49ee5b4cc913707c Mon Sep 17 00:00:00 2001 From: Anthony Samms Date: Tue, 28 Oct 2025 10:30:17 -0400 Subject: [PATCH] fix settings screen crash --- libs/texture.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/texture.py b/libs/texture.py index 0fe6ad9..6832cf7 100644 --- a/libs/texture.py +++ b/libs/texture.py @@ -165,6 +165,9 @@ class TextureWrapper: def load_screen_textures(self, screen_name: str) -> None: """Load textures for a screen.""" screen_path = self.graphics_path / screen_name + if not screen_path.exists(): + logger.warning(f"Screen {screen_name} does not exist") + return if (screen_path / 'animation.json').exists(): with open(screen_path / 'animation.json') as json_file: self.animations = parse_animations(json.loads(json_file.read()))