mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-01-21 05:18:39 +01:00
Fix FileNotFoundError if theme has never been set
This commit is contained in:
parent
b6a11f6338
commit
4cc2dda585
@ -19,8 +19,11 @@ def list_out():
|
||||
user_themes = [theme.name.replace(".json", "")
|
||||
for theme in list_themes_user()]
|
||||
|
||||
try:
|
||||
last_used_theme = util.read_file(os.path.join(
|
||||
CACHE_DIR, "last_used_theme"))[0].replace(".json", "")
|
||||
except FileNotFoundError:
|
||||
last_used_theme = ""
|
||||
|
||||
if user_themes:
|
||||
print("\033[1;32mUser Themes\033[0m:")
|
||||
|
Loading…
Reference in New Issue
Block a user