statusd.py: fix bug change_status()
This commit is contained in:
parent
4c77e6b820
commit
6973c1bf21
1 changed files with 2 additions and 1 deletions
|
@ -136,7 +136,8 @@ 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')
|
loggin.error('Failed to open API file. Wrong permissions?')
|
||||||
|
else:
|
||||||
logging.error('API file is not writable. No permissions?')
|
logging.error('API file is not writable. No permissions?')
|
||||||
logging.info('Status successfull changed to {}'.format(status))
|
logging.info('Status successfull changed to {}'.format(status))
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue