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: for entry in j:
result.append(entry['MESSAGE']) result.append(entry['MESSAGE'])
logging.error(result) logging.error(result)
try:
with open(fullname, 'w') as f: with open(fullname, 'w') as f:
f.write(result) f.write(result)
except Exception as e:
logging.error(e)
plugins = await self.plugins_list() plugins = await self.plugins_list()