From ad826ddadfc53832dbdb297da625e0228e1b010c Mon Sep 17 00:00:00 2001 From: Andreas Lauser <andreas.lauser@mbition.io> Date: Thu, 20 Jun 2024 11:00:56 +0200 Subject: [PATCH] fix deprecation warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit this is the same patch as Randy Döring's #315 which we unfortunately cannot merge because Randy cannot sign the CLA. Signed-off-by: Andreas Lauser <andreas.lauser@mbition.io> Signed-off-by: Katja Köhler <katja.koehler@mbition.io> --- odxtools/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odxtools/exceptions.py b/odxtools/exceptions.py index 4645c266..aaf29f59 100644 --- a/odxtools/exceptions.py +++ b/odxtools/exceptions.py @@ -40,7 +40,7 @@ def odxraise(message: Optional[str] = None, error_type: Type[Exception] = OdxErr else: raise error_type(message) elif message is not None: - logger.warn(message) + logger.warning(message) def odxassert(condition: bool,