diff options
author | Romain DEP. <rom1dep@gmail.com> | 2017-11-04 20:56:59 +0300 |
---|---|---|
committer | Romain DEP. <rom1dep@gmail.com> | 2017-11-04 20:56:59 +0300 |
commit | df04516e855b996bcecd5a0a9147a4c5bbf4bea8 (patch) | |
tree | fe940afc02b1a7d81bc507b29cca8d0e533ceef5 | |
parent | e52ab4c6279f7f44f30a0cdc2f3e077999e93c38 (diff) |
[client_icons] fix exception with pidgin
-rw-r--r-- | clients_icons/clients_icons.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/clients_icons/clients_icons.py b/clients_icons/clients_icons.py index e420ec7..7779b34 100644 --- a/clients_icons/clients_icons.py +++ b/clients_icons/clients_icons.py @@ -533,10 +533,11 @@ class ClientsIconsPlugin(GajimPlugin): tag = iq_obj.stanza.getTags('c') if tag: caps = tag[0].getAttr('node') - if 'pidgin.im/' in caps: - caps = 'libpurple' - if 'sleekxmpp.com' in caps: - caps = 'httр://sleekxmpp.com/ver/1.1.11' + if caps: + if 'pidgin.im/' in caps: + caps = 'libpurple' + if 'sleekxmpp.com' in caps: + caps = 'httр://sleekxmpp.com/ver/1.1.11' iter_ = iq_obj.gc_control.get_contact_iter(iq_obj.nick) model = iq_obj.gc_control.model if model[iter_][self.muc_renderer_num] is not None: |