comparison sat/memory/disco.py @ 3156:0318802dfe28

core (memory/disco): fixed checkFeature return Failure: it seems that instanciating a Failure with a class name is not working anymore, so the exceptions.FeatureNotFound is instanciated now.
author Goffi <goffi@goffi.org>
date Tue, 04 Feb 2020 19:59:42 +0100
parents 7ce31f347ca3
children 12486cd4fa8b
comparison
equal deleted inserted replaced
3155:3a8755fdc78d 3156:0318802dfe28
137 137
138 @raise: exceptions.FeatureNotFound 138 @raise: exceptions.FeatureNotFound
139 """ 139 """
140 disco_infos = yield self.getInfos(client, jid_, node) 140 disco_infos = yield self.getInfos(client, jid_, node)
141 if not feature in disco_infos.features: 141 if not feature in disco_infos.features:
142 raise failure.Failure(exceptions.FeatureNotFound) 142 raise failure.Failure(exceptions.FeatureNotFound())
143 143
144 @defer.inlineCallbacks 144 @defer.inlineCallbacks
145 def checkFeatures(self, client, features, jid_=None, identity=None, node=""): 145 def checkFeatures(self, client, features, jid_=None, identity=None, node=""):
146 """Like checkFeature, but check several features at once, and check also identity 146 """Like checkFeature, but check several features at once, and check also identity
147 147