statusd.py: fix bug change_status()

This commit is contained in:
berhsi 2019-07-27 19:23:13 +02:00
parent 4c77e6b820
commit 6973c1bf21

View file

@ -136,7 +136,8 @@ def change_status(raw_data, api):
logging.error('Failed to write line to API file')
logging.error('Line: {}'.format(line))
logging.error('{}'.format(e))
logging.error('Failed to open API file')
loggin.error('Failed to open API file. Wrong permissions?')
else:
logging.error('API file is not writable. No permissions?')
logging.info('Status successfull changed to {}'.format(status))
return True