2
0
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:
Jarrod Johnson
2026-04-14 13:50:12 -04:00
parent 8990622470
commit c54ac530e1
+1 -1
View File
@@ -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