check error

This commit is contained in:
avollkopf 2024-05-01 19:37:22 +02:00
parent e12d437ed0
commit d7ff5ca712

View file

@ -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()