statusd.py: fix bug in change_status()
This commit is contained in:
parent
01dff18c07
commit
cd1697a134
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue