minor code improvement
This commit is contained in:
parent
219405952c
commit
d12be64986
|
@ -1383,8 +1383,7 @@ class Connection(CommonConnection, ConnectionHandlers):
|
||||||
errnum = con.Connection.ssl_errnum
|
errnum = con.Connection.ssl_errnum
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
errnum = [] # we don't have an errnum
|
errnum = [] # we don't have an errnum
|
||||||
i = 0
|
for i, er in enumerate(errnum):
|
||||||
for er in errnum:
|
|
||||||
if er > 0 and str(er) not in gajim.config.get_per('accounts',
|
if er > 0 and str(er) not in gajim.config.get_per('accounts',
|
||||||
self.name, 'ignore_ssl_errors').split():
|
self.name, 'ignore_ssl_errors').split():
|
||||||
text = _('The authenticity of the %s certificate could be '
|
text = _('The authenticity of the %s certificate could be '
|
||||||
|
|
Loading…
Reference in New Issue