From 033e18d996cbcc9956b327e2b75ada3a7559b68a Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 13 May 2022 17:57:24 +0200 Subject: [PATCH] core (memory/param): fix unproper use of `Failure` --- sat/memory/params.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sat/memory/params.py b/sat/memory/params.py index a8952466..ae8981b7 100644 --- a/sat/memory/params.py +++ b/sat/memory/params.py @@ -186,9 +186,9 @@ class Params(object): """ 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):