statusd.py: fix bug in change_status()

This commit is contained in:
berhsi 2019-07-27 19:40:16 +02:00
parent 01dff18c07
commit cd1697a134

View file

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