From be894106a355e98a390306f24840806bfae547b0 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Sun, 16 May 2021 15:33:01 +0300 Subject: [PATCH] Fix string formatting for older python3 versions --- twitch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitch.py b/twitch.py index d1e27aa..8d54eb8 100644 --- a/twitch.py +++ b/twitch.py @@ -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')