From 72e3c02a2b40f7d232688cce007a4161a10e54ab Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 17 Oct 2018 15:20:01 +1100 Subject: general: fix lint --- pywal/theme.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'pywal/theme.py') diff --git a/pywal/theme.py b/pywal/theme.py index 37936c5..fcd1dd1 100644 --- a/pywal/theme.py +++ b/pywal/theme.py @@ -100,7 +100,7 @@ def file(input_file, light=False): theme_file = os.path.join(MODULE_DIR, "colorschemes", bri, theme_name) # Find the theme file. - if input_file == "random" or input_file == "random_dark": + if input_file in ("random", "random_dark"): theme_file = get_random_theme() elif input_file == "random_light": @@ -118,8 +118,7 @@ def file(input_file, light=False): os.path.basename(theme_file)) return parse(theme_file) - else: - logging.error("No %s colorscheme file found.", bri) - logging.error("Try adding '-l' to set light themes.") - logging.error("Try removing '-l' to set dark themes.") - sys.exit(1) + logging.error("No %s colorscheme file found.", bri) + logging.error("Try adding '-l' to set light themes.") + logging.error("Try removing '-l' to set dark themes.") + sys.exit(1) -- cgit v1.2.3