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):