diff --git a/selfdrive/frogpilot/assets/theme_manager.py b/selfdrive/frogpilot/assets/theme_manager.py index 7c7ccb6ccb2d42..5a8905feedaafb 100644 --- a/selfdrive/frogpilot/assets/theme_manager.py +++ b/selfdrive/frogpilot/assets/theme_manager.py @@ -414,7 +414,7 @@ def validate_themes(self, frogpilot_toggles): else: theme_path = os.path.join(THEME_SAVE_PATH, "theme_packs", theme_name, theme_component) - if not os.path.exists(theme_path): + if theme_path is None or not os.path.exists(theme_path): print(f"{theme_name} for {theme_component} not found. Downloading...") self.download_theme(theme_component, theme_name, theme_param)