# HG changeset patch # User Goffi # Date 1652457444 -7200 # Node ID 5f546dd910e03c1e70ad1ad209599f8c9b786639 # Parent 073f386a191a739f518e44c7df8ff99a5a1ddfaa core (memory/param): fix unproper use of `Failure` diff -r 073f386a191a -r 5f546dd910e0 sat/memory/params.py --- 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):