From a9073cce0dc0653e3d86c3207269d296d7bf8f49 Mon Sep 17 00:00:00 2001
From: Fabrice Le Goff <fabrice.le.goff@cern.ch>
Date: Tue, 10 Sep 2019 10:40:29 +0200
Subject: [PATCH] fix error msg formatting in krb function

---
 Script/CastorScript.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Script/CastorScript.py b/Script/CastorScript.py
index 324eb9c..610056a 100644
--- a/Script/CastorScript.py
+++ b/Script/CastorScript.py
@@ -385,7 +385,7 @@ def krb_tokenexpiration(logger):
         expiration_date = datetime.datetime.strptime(' '.join(ticket[2:4]),
                 '%m/%d/%y %H:%M:%S')
     except ValueError as exc:
-        logger.critical('error converting string to date: ticket="{}", date_string="{}"',
+        logger.critical('error converting string to date: ticket="%s", date_string="%s"',
                 ticket,  ' '.join(ticket[2:4]))
         raise exc
     return expiration_date
-- 
GitLab