core, plugins: host.getClient now raise an exception instead of returning None when no profile is found, plugins have been adapted consequently and a bit cleaned

This commit is contained in:
Goffi 2014-03-28 18:07:02 +01:00
commit a6897c76e0

View file

@ -58,8 +58,6 @@ class XEP_0092(object):
- os: operating system of the queried entity
"""
client = self.host.getClient(profile_key)
if not client:
raise exceptions.ProfileUnknownError
iq_elt = compat.IQ(client.xmlstream, 'get')
iq_elt['to'] = jid_.full()
query_elt = iq_elt.addElement("query", NS_VERSION)