hostname = gajim.config.get_per('accounts', self.name, 'hostname')
self.connection = con
try:
errnum = con.Connection.ssl_errnum
errnum = [con.Connection.ssl_errnum]
except AttributeError:
errnum = [] # we don't have an errnum
i = 0