diff options
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()) |