]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python:colour: Fix exception message
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 2 Oct 2023 02:05:33 +0000 (15:05 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 13 Oct 2023 03:50:31 +0000 (03:50 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/colour.py

index 4a33acc36389263f5615c31cafa5fff41c8b90d8..1fb6f24fb6a26c1987d03b3b599f2742e491a343 100644 (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