From 7a7fc0a87d455385538f9fdc3945fb76f369179e Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Mon, 21 Sep 2020 20:02:03 -0300 Subject: [PATCH] Fixed log warning detail. Cases when % was in the string but not for C style. --- kibot/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kibot/log.py b/kibot/log.py index a78bb274..aadb76d0 100644 --- a/kibot/log.py +++ b/kibot/log.py @@ -37,7 +37,7 @@ class MyLogger(logging.Logger): def warning(self, msg, *args, **kwargs): MyLogger.warn_tcnt += 1 - if isinstance(msg, str): + if isinstance(msg, str) and len(args): buf = StringIO() buf.write(msg % args) buf = buf.getvalue()