statusd.py: fix bug change_status()

This commit is contained in:
berhsi 2019-07-27 19:25:23 +02:00
parent 6973c1bf21
commit 93e1ef8e00

View file

@ -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