From 93e1ef8e00db8e585199a96580ce7e0ea9dd3431 Mon Sep 17 00:00:00 2001 From: berhsi Date: Sat, 27 Jul 2019 19:25:23 +0200 Subject: [PATCH] statusd.py: fix bug change_status() --- statusd.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/statusd.py b/statusd.py index c438800..3a65150 100755 --- a/statusd.py +++ b/statusd.py @@ -137,8 +137,10 @@ def change_status(raw_data, api): logging.error('Line: {}'.format(line)) logging.error('{}'.format(e)) loggin.error('Failed to open API file. Wrong permissions?') + return False else: - logging.error('API file is not writable. No permissions?') + logging.error('API file is not writable. Wrong permissions?') + return False logging.info('Status successfull changed to {}'.format(status)) return True return False