diff src/plugins/plugin_xep_0092.py @ 941:c6d8fc63b1db

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
author Goffi <goffi@goffi.org>
date Fri, 28 Mar 2014 18:07:02 +0100
parents 73873e9b56f7
children 899dc9cd0f35
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0092.py	Fri Mar 28 18:06:51 2014 +0100
+++ b/src/plugins/plugin_xep_0092.py	Fri Mar 28 18:07:02 2014 +0100
@@ -58,8 +58,6 @@
                  - 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)