core: fix failure raising with exception classes:
When raising a `Failure` with an exception, the `Exception` class can't be used, it must be an instance.
This commit is contained in:
parent
90c6f11415
commit
d3113ed2d8
1 changed files with 5 additions and 5 deletions
|
|
@ -224,7 +224,7 @@ class MiscAccount(object):
|
|||
raise exceptions.DataError
|
||||
|
||||
if profile.lower() in RESERVED_LIST:
|
||||
return defer.fail(Failure(exceptions.ConflictError))
|
||||
return defer.fail(Failure(exceptions.ConflictError()))
|
||||
|
||||
d = self.host.memory.create_profile(profile, password)
|
||||
d.addCallback(lambda __: self.profile_created(password, jid_s, profile))
|
||||
|
|
|
|||
Loading…
Reference in a new issue