mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-12-24 14:34:59 +01:00
check error
This commit is contained in:
parent
e12d437ed0
commit
d7ff5ca712
1 changed files with 5 additions and 3 deletions
|
@ -158,9 +158,11 @@ class SystemController:
|
|||
for entry in j:
|
||||
result.append(entry['MESSAGE'])
|
||||
logging.error(result)
|
||||
|
||||
with open(fullname, 'w') as f:
|
||||
f.write(result)
|
||||
try:
|
||||
with open(fullname, 'w') as f:
|
||||
f.write(result)
|
||||
except Exception as e:
|
||||
logging.error(e)
|
||||
|
||||
plugins = await self.plugins_list()
|
||||
|
||||
|
|
Loading…
Reference in a new issue