From 9fe0c812a0b4d7d33ecb879efc1e464d427b834f Mon Sep 17 00:00:00 2001 From: nicolargo Date: Fri, 15 Nov 2024 18:01:47 +0100 Subject: [PATCH] SyntaxError: f-string: unmatched '[' in server list (on the DEVELOP branch only) #3018 --- glances/servers_list.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glances/servers_list.py b/glances/servers_list.py index f05af93c..b2085439 100644 --- a/glances/servers_list.py +++ b/glances/servers_list.py @@ -145,7 +145,7 @@ class GlancesServersList: if server['protocol'].lower() == 'rpc': self.__update_stats_rpc(server['uri'], server) elif server['protocol'].lower() == 'rest' and not import_requests_error_tag: - self.__update_stats_rest(f'{server['uri']}/api/{__apiversion__}', server) + self.__update_stats_rest(f"{server['uri']}/api/{__apiversion__}", server) return server @@ -208,9 +208,9 @@ class GlancesServersList: for column in self.get_columns(): server_key = self.__get_key(column) # Build the URI (URL encoded) - request_uri = f'{column['plugin']}/{column['field']}' + request_uri = f"{column['plugin']}/{column['field']}" if 'key' in column: - request_uri += f'/{column['key']}' + request_uri += f"/{column['key']}" request_uri = f'{uri}/' + requests.utils.quote(request_uri) # Value try: