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:
committed by
Andrew Bartlett
parent
876ee3fb84
commit
7c89c5880e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user