From f02c09f7f9c6f059fd7e376570815b7f0e8b849a Mon Sep 17 00:00:00 2001 From: Simon Fayer Date: Thu, 25 Jun 2026 17:36:16 +0100 Subject: [PATCH] fix: Catch ValueError when formatting SQL statement logs --- src/DIRAC/Core/Utilities/MySQL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DIRAC/Core/Utilities/MySQL.py b/src/DIRAC/Core/Utilities/MySQL.py index 49383b1cdd7..b73e94e5218 100755 --- a/src/DIRAC/Core/Utilities/MySQL.py +++ b/src/DIRAC/Core/Utilities/MySQL.py @@ -759,7 +759,7 @@ def _logCmd(self, cmd, args=None): try: return safe % tuple(subs) - except TypeError: + except (TypeError, ValueError): return safe def _connect(self):