mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Ugh we really need to make this raise an exception ...
This commit is contained in:
parent
732f898773
commit
63fa54171d
1 changed files with 2 additions and 2 deletions
|
@ -1135,7 +1135,7 @@ class RestoreManager():
|
|||
self._restore_system()
|
||||
self._restore_apps()
|
||||
except Exception as e:
|
||||
logger.error("The following critical error happened during restoration: %s" % e)
|
||||
raise YunohostError("The following critical error happened during restoration: %s" % e)
|
||||
finally:
|
||||
self.clean()
|
||||
|
||||
|
@ -1245,7 +1245,7 @@ class RestoreManager():
|
|||
|
||||
# Remove all permission for all app which is still in the LDAP
|
||||
for permission_name in user_permission_list(ignore_system_perms=True)["permissions"].keys():
|
||||
permission_delete(permission_name)
|
||||
permission_delete(permission_name, force=True)
|
||||
|
||||
# Restore permission for the app which is installed
|
||||
for permission_name, permission_infos in old_apps_permission.items():
|
||||
|
|
Loading…
Add table
Reference in a new issue