mirror of
https://github.com/xcat2/confluent.git
synced 2026-05-08 09:40:13 +00:00
Handle some environments where timedatectl does not exist
This commit is contained in:
@@ -395,7 +395,7 @@ def handle_request(env, start_response):
|
||||
keymap = ckeymap
|
||||
try:
|
||||
tdc = util.run(['timedatectl'])[0].split(b'\n')
|
||||
except subprocess.CalledProcessError:
|
||||
except (subprocess.CalledProcessError, FileNotFoundError):
|
||||
tdc = []
|
||||
currtzvintage = time.time()
|
||||
ncfg['timezone'] = currtz
|
||||
|
||||
Reference in New Issue
Block a user