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