Fix string formatting for older python3 versions

This commit is contained in:
Alex Vanin 2021-05-16 15:33:01 +03:00
parent 6ca8f3cd3c
commit be894106a3

View file

@ -66,7 +66,7 @@ class TwitchClient:
r = requests.get(base, headers=header).json()
error_message = r.get("error", "")
if len(error_message) > 0:
cherrypy.log(f'Request: fail with error "{error_message}"')
cherrypy.log('Request: fail with error "%s"' % error_message)
r = None
else:
cherrypy.log('Request: OK')