Mercurial > libervia-backend
comparison src/memory/disco.py @ 1675:fd143578fe89
plugin XEP-0065: fixed bad error handling
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 25 Nov 2015 13:03:10 +0100 |
parents | e0bde0d0b321 |
children | 373ce871b0f3 |
comparison
equal
deleted
inserted
replaced
1674:518a42587600 | 1675:fd143578fe89 |
---|---|
170 @param category: identity's category | 170 @param category: identity's category |
171 @param type_: identitiy's type | 171 @param type_: identitiy's type |
172 @param jid_: the jid of the target server (None for profile's server) | 172 @param jid_: the jid of the target server (None for profile's server) |
173 @param profile: %(doc_profile)s | 173 @param profile: %(doc_profile)s |
174 @return: a set of found entities | 174 @return: a set of found entities |
175 @raise CancelError: the request timed out | 175 @raise defer.CancelledError: the request timed out |
176 """ | 176 """ |
177 found_entities = set() | 177 found_entities = set() |
178 | 178 |
179 def infosCb(infos, entity_jid): | 179 def infosCb(infos, entity_jid): |
180 if (category, type_) in infos.identities: | 180 if (category, type_) in infos.identities: |