From e8de6c9ea59a0d3000c9baca1bca1d342d93759f Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sun, 18 Feb 2024 02:52:02 +0900 Subject: [PATCH] Fix incomplete exception message This is follow-up of 76d414e58d1edd416cb96f0f054dc4b7f0bc1dcf and fixes the incomplete construction of an exception message. This also removes the translation according to the other messages. Change-Id: Ie2ed619b06d9d6340eb81fc1fac4dbd21702de19 --- oslo_cache/core.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/oslo_cache/core.py b/oslo_cache/core.py index b3925b4d..a97780d3 100644 --- a/oslo_cache/core.py +++ b/oslo_cache/core.py @@ -298,12 +298,11 @@ def _build_cache_config(conf): '%s.arguments.connection_kwargs' % prefix, {}).update(conn_kwargs) else: - msg = _( + raise exception.ConfigurationError( "TLS setting via [cache] tls_enabled is not supported by the " "%s backend. Set [cache] tls_enabled=False or use a different " - "backend." + "backend." % conf.cache.backend ) - raise exception.ConfigurationError(msg) # NOTE(hberaud): Pymemcache support socket keepalive, If it is enable in # our config then configure it to enable this feature.