when we get a 40* error from server about private storage, it doesn't mean server doesn't support it.

This commit is contained in:
Yann Leboulanger 2007-10-21 16:59:47 +00:00
parent 3650021d9b
commit 77eab243e6
1 changed files with 2 additions and 1 deletions

View File

@ -1082,7 +1082,8 @@ class ConnectionVcard:
meta_list[tag] = [data] meta_list[tag] = [data]
self.dispatch('METACONTACTS', meta_list) self.dispatch('METACONTACTS', meta_list)
else: else:
self.private_storage_supported = False if iq_obj.getErrorCode() not in ('403', '406', '404'):
self.private_storage_supported = False
# We can now continue connection by requesting the roster # We can now continue connection by requesting the roster
self.connection.initRoster() self.connection.initRoster()
elif self.awaiting_answers[id][0] == PRIVACY_ARRIVED: elif self.awaiting_answers[id][0] == PRIVACY_ARRIVED: