1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-14 20:23:54 +03:00

python:colour: Fix exception message

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton
2023-10-02 15:05:33 +13:00
committed by Andrew Bartlett
parent 876ee3fb84
commit 7c89c5880e

View File

@@ -111,7 +111,7 @@ def is_colour_wanted(*streams, hint='auto'):
return True
if hint not in ('auto', 'tty', 'if-tty', None, ''):
raise ValueError("unexpected colour hint: {hint}; "
raise ValueError(f"unexpected colour hint: {hint}; "
"try always|never|auto")
from os import environ