Mercurial > libervia-backend
changeset 3752:5f546dd910e0
core (memory/param): fix unproper use of `Failure`
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 13 May 2022 17:57:24 +0200 (2022-05-13) |
parents | 073f386a191a |
children | 10b71e3526bd |
files | sat/memory/params.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/sat/memory/params.py Fri May 13 17:56:40 2022 +0200 +++ b/sat/memory/params.py Fri May 13 17:57:24 2022 +0200 @@ -186,9 +186,9 @@ """ if self.storage.hasProfile(profile): log.info(_("The profile name already exists")) - return defer.fail(Failure(exceptions.ConflictError)) + return defer.fail(exceptions.ConflictError()) if not self.host.trigger.point("ProfileCreation", profile): - return defer.fail(Failure(exceptions.CancelError)) + return defer.fail(exceptions.CancelError()) return self.storage.createProfile(profile, component or None) def asyncDeleteProfile(self, profile, force=False):