1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-24 10:50:26 +03:00

Catch exceptions from backend

This commit is contained in:
Игорь Чудов 2020-05-15 00:51:44 +04:00
parent 19cb5c072a
commit 8b7e8547e6
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC

View File

@ -105,7 +105,10 @@ class gpoa_controller:
if is_root():
back = backend_factory(dc, self.username, self.is_machine, nodomain)
if back:
back.retrieve_and_store()
try:
back.retrieve_and_store()
except Exception as exc:
logging.error(slogm('Backend execution error: {}'.format(str(exc))))
def start_frontend(self):
'''