don't crash when cacerts.pem file doesn't exists

This commit is contained in:
Yann Leboulanger 2013-02-10 11:29:14 +01:00
parent 19864ec80e
commit 3d92f24834
1 changed files with 2 additions and 0 deletions

View File

@ -1168,6 +1168,8 @@ class Connection(CommonConnection, ConnectionHandlers):
port = self._current_host['port']
cacerts = os.path.join(common.gajim.DATA_DIR, 'other', 'cacerts.pem')
if not os.path.exists(cacerts):
cacerts = ''
mycerts = common.gajim.MY_CACERTS
secure_tuple = (self._current_type, cacerts, mycerts)