Fix string formatting for older python3 versions
This commit is contained in:
parent
6ca8f3cd3c
commit
be894106a3
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue