Added CLI error output when flag is not found

This commit is contained in:
Felipe Martin 2017-05-03 16:27:40 +02:00
parent a28d93bc71
commit 35d161937e
Signed by: fmartingr
GPG Key ID: 716BC147715E716F
1 changed files with 5 additions and 1 deletions

View File

@ -12,7 +12,11 @@ logger = logging.getLogger()
def get_luxafor():
return luxafor.Luxafor()
try:
return luxafor.Luxafor()
except BaseException:
click.secho('Luxafor flag not found.', fg='red')
sys.exit(1)
def convert_hex_to_dec_color(hex_color: str) -> tuple: