Remove backslashes from CLI theme names if no theme with the name is found
This commit is contained in:
parent
9db9638bc3
commit
efaeb0f0b2
@ -546,6 +546,10 @@ def non_interactive(cli_opts: ThemesCLIOptions, theme_name: str) -> None:
|
|||||||
themes = load_themes(cli_opts.cache_age)
|
themes = load_themes(cli_opts.cache_age)
|
||||||
except NoCacheFound as e:
|
except NoCacheFound as e:
|
||||||
raise SystemExit(str(e))
|
raise SystemExit(str(e))
|
||||||
|
try:
|
||||||
|
theme = themes[theme_name]
|
||||||
|
except KeyError:
|
||||||
|
theme_name = theme_name.replace('\\', '')
|
||||||
try:
|
try:
|
||||||
theme = themes[theme_name]
|
theme = themes[theme_name]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user