Skip to content
Snippets Groups Projects
Commit a9073cce authored by Fabrice Le Goff's avatar Fabrice Le Goff
Browse files

fix error msg formatting in krb function

parent 6ebc9704
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment