Change pass to continue in verify_config()

This commit is contained in:
Aaron Lichtman 2019-11-06 22:39:51 +01:00
parent 6f3866cbcf
commit 6145682a29
No known key found for this signature in database
GPG key ID: 22368077DE9F9903

View file

@ -171,7 +171,7 @@ def verify_config(config):
for key, color in config["colors"].items(): for key, color in config["colors"].items():
upper_color = color.upper() upper_color = color.upper()
if upper_color == "NONE": if upper_color == "NONE":
pass continue
if not getattr(colorama.Fore, upper_color, None): if not getattr(colorama.Fore, upper_color, None):
print("[{2}ERROR{3}: {0} set to invalid color: {1}]".format(key, color, ERROR_COLOR, RESET_COLOR), file=sys.stderr) print("[{2}ERROR{3}: {0} set to invalid color: {1}]".format(key, color, ERROR_COLOR, RESET_COLOR), file=sys.stderr)
all_valid_colors = False all_valid_colors = False