From 70e37e9eb16e359a9c1f0e66a7db9db2cda4e268 Mon Sep 17 00:00:00 2001 From: Lolouk44 Date: Sat, 20 Mar 2021 17:44:04 +0000 Subject: [PATCH] stdout indent fix --- src/Xiaomi_Scale.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Xiaomi_Scale.py b/src/Xiaomi_Scale.py index 51e1183..f736737 100644 --- a/src/Xiaomi_Scale.py +++ b/src/Xiaomi_Scale.py @@ -121,9 +121,9 @@ def customUserDecoder(userDict): except: sys.stderr.write(f"{datetime.now().strftime('%Y-%m-%d %H:%M:%S')} - {sys.exc_info()[1]}\n") raise -sys.stdout.write(f"{datetime.now().strftime('%Y-%m-%d %H:%M:%S')} - Config Loaded...\n") + sys.stdout.write(f"{datetime.now().strftime('%Y-%m-%d %H:%M:%S')} - Config Loaded...\n") -# Failed to open options.json, Loading Config From Environment (Not HA Add-On) +# Failed to open options.json except FileNotFoundError: sys.stderr.write(f"{datetime.now().strftime('%Y-%m-%d %H:%M:%S')} - options.json file missing... {error}\n") raise