mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-27 19:37:57 +00:00
Fix startswith parameter
Needed to be bytes for subprocess
This commit is contained in:
parent
2b39b9b5a6
commit
317a1c572b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user