summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-11 22:13:51 +0100
committermathieui <mathieui@mathieui.net>2011-11-11 22:13:51 +0100
commit0cfe87a9a6d3ce85ed11114b0607ac178f2a5821 (patch)
tree092cd04795ba9387d6ffdd503819e7fa21ac842d /src
parentea5692544ad196b90d64e46d7b43ae8c68c34e64 (diff)
downloadpoezio-0cfe87a9a6d3ce85ed11114b0607ac178f2a5821.tar.gz
poezio-0cfe87a9a6d3ce85ed11114b0607ac178f2a5821.tar.bz2
poezio-0cfe87a9a6d3ce85ed11114b0607ac178f2a5821.tar.xz
poezio-0cfe87a9a6d3ce85ed11114b0607ac178f2a5821.zip
Fix a (possible) traceback on /remove
Diffstat (limited to 'src')
-rw-r--r--src/tabs.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 5a1a33a3..e0419fda 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -1590,7 +1590,10 @@ class RosterInfoTab(Tab):
self.core.xmpp.sendPresence(pto=jid, ptype='unavailable')
self.core.xmpp.sendPresence(pto=jid, ptype='unsubscribe')
self.core.xmpp.sendPresence(pto=jid, ptype='unsubscribed')
- self.core.xmpp.del_roster_item(jid=jid)
+ try:
+ self.core.xmpp.del_roster_item(jid=jid)
+ except:
+ pass
def command_import(self, arg):
"""