From: Joseph Sutton Date: Mon, 2 Oct 2023 02:05:33 +0000 (+1300) Subject: python:colour: Fix exception message X-Git-Tag: tevent-0.16.0~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7c89c5880ea60c13839a27b244f3c855ecf9e464;p=thirdparty%2Fsamba.git python:colour: Fix exception message Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- 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