diff options
author | Florent Le Coz <louiz@louiz.org> | 2012-11-05 13:54:02 +0000 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2012-11-05 13:54:02 +0000 |
commit | bcd6976cd581a279d9c001269439d303fa549d70 (patch) | |
tree | 7ba4d40a10c6b5682463f68f234217e0b7391f6d /src | |
parent | 828938db9e4c139ad69401c933252a3af7d13420 (diff) | |
download | poezio-bcd6976cd581a279d9c001269439d303fa549d70.tar.gz poezio-bcd6976cd581a279d9c001269439d303fa549d70.tar.bz2 poezio-bcd6976cd581a279d9c001269439d303fa549d70.tar.xz poezio-bcd6976cd581a279d9c001269439d303fa549d70.zip |
Catch IqTimeout exception when removing a contact from the roster.
Diffstat (limited to 'src')
-rw-r--r-- | src/roster.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/roster.py b/src/roster.py index b6e24076..8ae15490 100644 --- a/src/roster.py +++ b/src/roster.py @@ -19,7 +19,7 @@ from roster_sorting import SORTING_METHODS, GROUP_SORTING_METHODS from os import path as p from common import safeJID from sleekxmpp import JID -from sleekxmpp.exceptions import IqError +from sleekxmpp.exceptions import IqError, IqTimeout class Roster(object): @@ -72,7 +72,7 @@ class Roster(object): try: self.__node[jid].send_presence(ptype='unavailable') self.__node.remove(jid) - except IqError: + except (IqError, IqTimeout): import traceback log.debug('IqError when removing %s:\n%s', jid, traceback.format_exc()) |