From 317a1c572ba6979e42bf70c832b8088ac4f823fa Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 18 May 2020 13:30:22 -0400 Subject: [PATCH] Fix startswith parameter Needed to be bytes for subprocess --- confluent_server/confluent/selfservice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/selfservice.py b/confluent_server/confluent/selfservice.py index 2c203c46..9e96d358 100644 --- a/confluent_server/confluent/selfservice.py +++ b/confluent_server/confluent/selfservice.py @@ -85,7 +85,7 @@ def handle_request(env, start_response): ['localectl', 'status']).split(b'\n') for line in langinfo: line = line.strip() - if line.startswith('System Locale:'): + if line.startswith(b'System Locale:'): currlocale = line.split('=')[-1] if not currlocale: continue