don't crash when cacerts.pem file doesn't exists
This commit is contained in:
parent
19864ec80e
commit
3d92f24834
|
@ -1168,6 +1168,8 @@ class Connection(CommonConnection, ConnectionHandlers):
|
||||||
port = self._current_host['port']
|
port = self._current_host['port']
|
||||||
|
|
||||||
cacerts = os.path.join(common.gajim.DATA_DIR, 'other', 'cacerts.pem')
|
cacerts = os.path.join(common.gajim.DATA_DIR, 'other', 'cacerts.pem')
|
||||||
|
if not os.path.exists(cacerts):
|
||||||
|
cacerts = ''
|
||||||
mycerts = common.gajim.MY_CACERTS
|
mycerts = common.gajim.MY_CACERTS
|
||||||
secure_tuple = (self._current_type, cacerts, mycerts)
|
secure_tuple = (self._current_type, cacerts, mycerts)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue