changeset df25d88761a8 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=df25d88761a8 description: fix registering new account
diffstat:
src/common/connection_handlers_events.py | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-)
diffs (29 lines):
diff -r 7ac7e47a48d4 -r df25d88761a8 src/common/connection_handlers_events.py --- a/src/common/connection_handlers_events.py Sun Jan 06 15:41:26 2013 +0400 +++ b/src/common/connection_handlers_events.py Sun Jan 06 15:11:34 2013 +0100 @@ -1562,17 +1562,18 @@ try: self.errnum = self.conn.connection.Connection.ssl_errnum except AttributeError: - self.errnum = -1 # we don't have an errnum + self.errnum = [] # we don't have an errnum self.ssl_msg = '' - if self.errnum > 0: - from common.connection import ssl_error - self.ssl_msg = ssl_error.get(self.errnum, _( - 'Unknown SSL error: %d') % self.errnum) + for er in self.errnum: + if er > 0: + from common.connection import ssl_error + self.ssl_msg = ssl_error.get(er, _('Unknown SSL error: %d') % \ + er) self.ssl_cert = '' - if hasattr(self.conn.connection.Connection, 'ssl_cert_pem'): + if len(self.conn.connection.Connection.ssl_cert_pem): self.ssl_cert = self.conn.connection.Connection.ssl_cert_pem self.ssl_fingerprint = '' - if hasattr(self.conn.connection.Connection, 'ssl_fingerprint_sha1'): + if len(self.conn.connection.Connection.ssl_fingerprint_sha1): self.ssl_fingerprint = \ self.conn.connection.Connection.ssl_fingerprint_sha1 return True