Skip to content

Commit

Permalink
Update theme_manager.py
Browse files Browse the repository at this point in the history
  • Loading branch information
FrogAi committed Dec 13, 2024
1 parent 681836e commit 6d4c7e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/frogpilot/assets/theme_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 6d4c7e0

Please sign in to comment.