mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-25 16:31:08 -06:00
Server Upgrade: raise RuntimeError instead exit()
Ldapupdater should not call sys.exit() in the middle of execution and should fail gracefully https://fedorahosted.org/freeipa/ticket/4904 Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
parent
7660f40e2b
commit
6c438fff33
@ -894,7 +894,7 @@ class LDAPUpdate:
|
||||
data = self.read_file(f)
|
||||
except Exception, e:
|
||||
self.error("error reading update file '%s'", f)
|
||||
sys.exit(e)
|
||||
raise RuntimeError(e)
|
||||
|
||||
self.parse_update_file(f, data, all_updates)
|
||||
self._run_updates(all_updates)
|
||||
|
Loading…
Reference in New Issue
Block a user