From 7c89c5880ea60c13839a27b244f3c855ecf9e464 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Mon, 2 Oct 2023 15:05:33 +1300 Subject: [PATCH] python:colour: Fix exception message Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- python/samba/colour.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/samba/colour.py b/python/samba/colour.py index 4a33acc3638..1fb6f24fb6a 100644 --- a/python/samba/colour.py +++ b/python/samba/colour.py @@ -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 -- 2.11.4.GIT